【原創】今天發現CSS上的一點使用FLoat要注意的地方(FireFox+IE)

來源:互聯網
上載者:User

有兩個div
<div class="Left"></div>
<div class="Right"></div>
.left
{
    float:left;
    width:20%;
    border:solid 1px red;
}

.Right
{
    float:right;
    width:76%;
}

在firefox下右邊框css設定只能用float:right ,IE下可以用float:left
設定完後 在IE下發現是正常顯示的,但是在firefox下看左邊的就差了那麼點,後來把left調成了23%就完美了,發現firefox的要求的確很嚴格,差一點也不行啊

相關文章

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.