CSS中幾種瀏覽器 相容性定義

來源:互聯網
上載者:User

CSS中幾種瀏覽器對不同關鍵字的支援,可進行瀏覽器安全色性重複定義

 

!important    可被FireFox和IE7識別

*                   可被IE6、IE7識別

_                   可被IE6識別

*+                 可被IE7識別

 IE專用的條件注釋

<!--其他瀏覽器 -->

<link rel="stylesheet" type="text/css" href="css.css" />

<!--[if IE 7]>

<!-- 適合於IE7 -->

<link rel="stylesheet" type="text/css" href="ie7.css" />

<![endif]-->

<!--[if lte IE 6]>

<!-- 適合於IE6及一下 -->

<link rel="stylesheet" type="text/css" href="ie.css" />

<![endif]-->

 

相關文章

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.