IE6空Div添加边距-修复
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IE6空Div添加边距-修复相关的知识,希望对你有一定的参考价值。
For instances where you have an empty div that is less than about 10-15px in height. IE assumes it should contain something and allots room for text.I first found this on the webdeveloper.com forums.
The kicker here for me was the "font-size:0" declaration. Cheers!
div{ font-size:0; line-height:0; margin:0; padding:0; }
以上是关于IE6空Div添加边距-修复的主要内容,如果未能解决你的问题,请参考以下文章