ie6的一個css的BUG

來源:互聯網
上載者:User
<div style="background:#00f">
<ul>
<li style="float:left">asdf</li>
</ul>
</div>

在ie7和firefox下一切顯示正常,但是在ie6下就出問題了,沒有背景色了。
可以給外層的div加一個高度來實現ie6下的相容,不過挺彆扭的。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.