ff、ie6、ie7、opera、safari最新css兼容方案
2014-09-12来源:易贤网

class{

background-color:# ffff00;/*所有浏览器*/

* background-color:#00ff00;/*ie*/

_ background-color:# 00ffff;/*ie6*/

}

@media all and(min-width:0){

.class{

background-color:#ff00ff; /*opera */

} }/*只有opera识别*/

@media all and (min-width:0){

.class{

background-color:#ff00ff; /*opera和sa */

html * .class{

background-color:# 808080; /*sa*/

}

}}

@media all and (min-width:0){

html * .class{

background-color:# 808080; /*sa*/

}}/*只有sa识别*/

更多信息请查看IT技术专栏

2026上岸·考公考编培训报班

  • 报班类型
  • 姓名
  • 手机号
推荐信息