只有ie7识别的css怎么写?

[复制链接]
查看11 | 回复1 | 2011-5-21 11:48:04 | 显示全部楼层 |阅读模式
回复

使用道具 举报

千问 | 2011-5-21 11:48:04 | 显示全部楼层
区别FF,IE7,IE6:
background:green!important;background:orange;*background:blue;

IE6能识别*,但不能识别!important,

IE7能识别*,也能识别!important;

FF不能识别*,但能识别!important;

另外再补充一个,下划线”_“,IE6支持下划线,IE7和firefox均不支持下划线。

于是大家还可以这样来区分firefox,IE7,IE6
background:green!important;*background:orange;_background:blue;

注:不管是什么方法,书写的顺序都是firefox的写在前面,IE7的写在中间,IE6的写在最后面。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则