CSS hack:区分IE6,IE7,firefox
作者:puterjam 来源:PuterJam's Blog 时间:2007-12-23 10:25:00
区别IE6与FF:
background:orange;*background:blue;
区别IE6与IE7:
background:green !important;background:blue;
区别IE7与FF:
background:orange; *background:green;
区别FF,IE7,IE6:
background:orange;*background:green !important;*background:blue;
注: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的写在最后面。
相关文章:CSS Hack 汇总快查
标签:css,hack,firefox,I
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
QQ在线客服网页代码大全
2008-01-17 18:28:00
![](https://img.aspxhome.com/file/UploadPic/20081/17/2008117205323775s.gif)
鼠年发几张可爱老鼠的表情gif
2008-01-29 12:50:00
![](https://img.aspxhome.com/file/UploadPic/20081/29/2008129125546627s.gif)
asp如何用JMail同时给多人发信?
2010-06-12 12:52:00
通过排序引导用户的行为方式
2008-05-17 09:30:00
![](https://img.aspxhome.com/file/UploadPic/20085/17/200851794651896s.gif)
ASP使用组件在线发E-mail的2个函数
2008-06-12 07:13:00
ASP 三层架构 Convert类实现代码
2011-03-16 11:01:00
asp如何用通过Web访问OLAP数据?
2010-06-16 09:52:00
JavaScript解决Joseph问题
2008-06-21 17:11:00
使用字符串建立查询能加快服务器的解析速度吗?
2010-07-14 21:03:00
你凭什么说你的网站用户体验好
2011-03-31 17:08:00
用图片做网站输入验证的构想
2009-02-02 10:18:00
![](https://img.aspxhome.com/file/UploadPic/20092/2/pics1-65.jpg)
css网页下拉菜单制作方法(1):基本原理
2007-02-03 11:39:00
ie和火狐兼容问题
2010-07-02 12:50:00
Oracle数据库的空间管理技巧
2010-07-26 13:16:00
ASP中一个字符串处理类加强版
2008-11-25 18:07:00
自适应网页设计(Responsive Web Design)
2012-05-02 10:49:07
![](https://img.aspxhome.com/file/UploadPic/20125/2/1335922013593-85s.jpg)
后工业时代的后规范思考
2009-06-03 20:30:00
Web 2.0 框架发布
2008-03-25 09:40:00
![](https://img.aspxhome.com/file/UploadPic/20083/25/200832595359766s.jpg)
超轻量级MSXML多功能测试程序
2009-05-19 12:38:00
![](https://img.aspxhome.com/file/UploadPic/20095/19/20090513224141384-92s.gif)
Oracle 函数大全[字符串函数,数学函数,日期函数]第1/4页
2009-03-04 10:56:00