css在ie6 ie7和Firefox寫法區別

來源:互聯網
上載者:User

(“√”代表可識別優先,“x”代表不可識別)
  樣本:(FF:white;IE7:greenIE6:orange)
  只針對FF與IE6(IE7):
  background:white;
  *background:orange;
  只針對IE7與IE6:
  background:green;
  _background:orange;
  or…
  background:green !important
  background:orange;
  只針對FF、IE7與IE6:
  background:white;
  *background:green;
  _background:orange;
  or…
  background:white;
  *background:green !important
  *background:orange;
  總結:
  書寫順序:FF;IE7;IE6
  操作順序:
  方法1[推薦] :
  1.先調Firefox。無優先標識
  2.調IE7,使用*標識。繼承1設定。
  3.調IE6,使用_標識。繼承1、2設定。
  方法2:
  1.先調Firefox。無優先標識
  2.調IE7,使用*+!important標識。繼承1設定。
  3.調IE6,使用*標識。繼承1、2設定。



相關文章

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.