FireFox下hr的css樣式

來源:互聯網
上載者:User
FireFox下hr的css樣式

當使用如下css定義的時候,在IE當中效果不錯,但是在FireFox瀏覽器情況下,效果不夠理想,基本能時虛線不虛,顯得有些粗,看起來有虛狀。

hr {height: 1px;width=97%;border:1px dashed black;text-align:left;}

按照如下修改以後,可以兼顧FireFox和IE。

hr {height: 1px;width=97%;border:0px;border-top:1px dashed black;text-align:left;}

相關文章

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.