惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CERT Recently Published Vulnerability Notes
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
Stack Overflow Blog
Stack Overflow Blog
aimingoo的专栏
aimingoo的专栏
C
Check Point Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
T
Tor Project blog
P
Proofpoint News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Latest news
Latest news
L
LINUX DO - 热门话题
罗磊的独立博客
T
Tenable Blog
The Hacker News
The Hacker News
美团技术团队
N
Netflix TechBlog - Medium
V
Vulnerabilities – Threatpost
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
博客园 - 司徒正美
Jina AI
Jina AI
Cyberwarzone
Cyberwarzone
云风的 BLOG
云风的 BLOG
S
Secure Thoughts
Cloudbric
Cloudbric
S
Security @ Cisco Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Security Blog
Microsoft Security Blog
Spread Privacy
Spread Privacy
U
Unit 42
雷峰网
雷峰网
C
CXSECURITY Database RSS Feed - CXSecurity.com
Webroot Blog
Webroot Blog
爱范儿
爱范儿
博客园 - 【当耐特】
Know Your Adversary
Know Your Adversary
P
Privacy International News Feed
P
Palo Alto Networks Blog
Google Online Security Blog
Google Online Security Blog
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
F
Full Disclosure
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Security Affairs
Project Zero
Project Zero

博客园 - Eric.Wang

jQuery的.bind()、.live()和.delegate()之间区别 [转][探讨]为什么说JavaScript是性价比最高的技术? [转载]C# 中的委托和事件 常见兼容性问题及解决方案 浅析JavaScript继承方式 深入理解js闭包 一些常用且实用的原生 JavaScript函数 兼容IE和FF的js脚本做法(比较常用) CSS的盒子模型(Box Model) jQuery使用技巧 CSS基础学习 IE与Firefox对CSS的解析差异 关于JavaScript中apply与call的用法意义及区别 JS调用后台方法大全 Aptana配置说明 Asp.Net收集 VS2005打开js文件,中文都是乱码 检测远程URL是否存在的三种方法 - Eric.Wang - 博客园 鼠标停留在GridView某行的颜色改变 - Eric.Wang - 博客园
区分IE6,IE7,firefox三种浏览器的CSS HACK
Eric.Wang · 2010-04-20 · via 博客园 - Eric.Wang

CSS HACK

一月 6, 2010 | In: CSS HACK

区别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的写在最后面。