1

So I was playing around with html, and I have made some links. By some magic power there is a magic space between the a-tags. I think it comes from the display: inline-block instruction, however the question is how to handle this space in web design where every pixel counts?

JsFiddle: Go to JsFiddle example

Screenshot: enter image description here

4

1 回答 1

1

您的标记无效,首先将 a 嵌入 li 中,而不是相反。

而且那个魔法空间不是边距,它是元素之间的空白,这很重要,因为您使用的是inline -block

看看这个问题:如何删除内联块元素之间的空间?

于 2013-09-07T17:52:39.023 回答