Quantcast
Channel: Smeagol's blog » ie6
Viewing all articles
Browse latest Browse all 2

ie6下 padding 底部的数值2倍了,上、左、右都是正常的。

$
0
0

这个问题很诡异,html结构如下:div.a>div.b+input.c+input.d(都能看懂的哈,不懂的可以看zencoding)。我这里a是float:right,b、c、d都是float:left。c、d是display:inline;这样就出了一个问题,在ie6下,如果a有padding:1px;,这样的话,padding-bottom就会变成原来的2倍,即2px。解决方法:给b加上display:inline;。至于为什么我也不知道。。。。。。很神奇。。。。。


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images