Bug with height attribute of position absolute div in IE6
When I try to run the following
<body>
<div style="width: 400px;height: 1px;background-color: red;position: absolute;bottom: 0;right: 0"></div>
</body>
It d开发者_StackOverflow社区oesn't understand the height of my div in IE6 (also in 5.5).
Is this known bug? And how can I solve it?
It won't create a height/width on it until there's something inside the div. Try adding
(or any other text) inside the div to get it to adjust properly.
try font-size:0;line-height:0;
as well
精彩评论