css hack 区分ie6.0 ie7.0 firesox的各种写法
作者:Levone 来源:source 【大 中 小】 浏览: 添加日期:2008-06-30 我要评论(1)
区别IE6与FF:
background:orange;*background:blue;
区别IE6与IE7:
区别IE6与IE7:
background:green !important;background:blue;
区别IE7与FF:
区别IE7与FF:
background:orange; *background:green;
区别FF,IE7,IE6:
区别FF,IE7,IE6:
background:orange;*background:green !important;*background:blue;
注:IE都能识别*;标准浏览器(如FF)不能识别*;
注:IE都能识别*;标准浏览器(如FF)不能识别*;
IE6能识别*,但不能识别 !important,
IE7能识别*,也能识别!important;
FF不能识别*,但能识别!important;
| IE6 | IE7 | FF | |
| * | √ | √ | × |
| !important | × | √ | √ |
另外再补充一个,下划线"_",
IE6支持下划线,IE7和firefox均不支持下划线。
于是大家还可以这样来区分IE6,IE7,firefox
: background:orange;*background:green;_background:blue;
注:不管是什么方法,书写的顺序都是firefox的写在前面,IE7的写在中间,IE6的写在最后面。
(如果您觉得本站不错,请告诉身边的朋友,或转载到论坛、百度知道、贴吧等,记得带网址哟,不胜感激!)
〖WEB标准〗Tags: css hack 浏览器兼容 hack
所属专题:CSS HACK
相关文章
更多评论(1)..会员评论
- 稻草人(123.112.*.*) 发表于:2009-05-07 18:00:20
- 上面的写法有错误吧我都试过了怎么没有反应啊...
- 管理员回复:我一般没用到第三种方法。
推荐文章
热门文章
最新评论文章
推荐专题
在线交流QQ群
- 44051756(开)
- 74816202(开)
- 75782368(开)
- 54187042(开)
- 102426914(开)
- 87010869(开)
- 71571195(开)
- 35826206(开)
- 40334594(开)
- 102050535(开)
- 105366319(开)
- 106872711(开)
- 61729892(开)
- 100154872(开)
- 61729892(开)
- 38473554(开)
