[英]IE quirks mode: image display block
In IE's quirks mode, it appears images remain inline when set to position absolute. 在IE的怪癖模式下,当设置为绝对位置时,图像似乎保持内联。
<li style='padding-left:25px;position:relative'>
Hello, I am some text
<img src='http://userserve-ak.last.fm/serve/34s/2378690.jpg' style='position:absolute;left:0px;'/>
</li>
Is there any way to make this behave like it were in standards mode (with just CSS)? 有什么方法可以使其表现得像在标准模式下一样(仅使用CSS)?
将doctype放在页面顶部,切换到标准模式,每个人的情况都会好得多。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.