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

推荐订阅源

MongoDB | Blog
MongoDB | Blog
Recorded Future
Recorded Future
Jina AI
Jina AI
The Register - Security
The Register - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
F
Fortinet All Blogs
人人都是产品经理
人人都是产品经理
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research
L
LangChain Blog
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
The GitHub Blog
The GitHub Blog
Vercel News
Vercel News
博客园 - 【当耐特】
雷峰网
雷峰网
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google DeepMind News
Google DeepMind News
Security Latest
Security Latest
有赞技术团队
有赞技术团队
L
Lohrmann on Cybersecurity
P
Proofpoint News Feed
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
P
Privacy & Cybersecurity Law Blog
Scott Helme
Scott Helme
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
Hacker News - Newest:
Hacker News - Newest: "LLM"
NISL@THU
NISL@THU
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
B
Blog RSS Feed
Cyberwarzone
Cyberwarzone
K
Kaspersky official blog
F
Full Disclosure
Martin Fowler
Martin Fowler
Spread Privacy
Spread Privacy
D
Docker
C
Cisco Blogs
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page

博客园 - PENGHAO-X

indows 8上强制Visual Studio以管理员身份运行 jQuery中浏览器版本判断的一个BUG,此BUG已影响到jqModal,thickbox等多个jQuery插件的应用 [注意]你的系统中存在这个BUG吗?(正则表达式验证) SQL 2005 except,intersect [收藏 ]针对IE网页浏览器不同版本解释的CSS或javascript .NET Framework 3.5中序列化成JSON数据及JSON数据的反序列化,以及jQuery的调用JSON Windows 2003 远程桌面连接出错解决办法。(由于协议错误,会话将被中断。请重新连接到远程计算机。) ListView 中的一个低级 BUG 全国哀悼日 灰色CSS滤镜 将字符串对转换成字典(临时表)的自定义函数(SQL) [转载][收藏][新]正则表达式30分钟入门教程[2007-8-3 V2.21] 获取表中新记录(下一条记录)的主键值的存储过程 .NET 2.0中,配置文件app.config的读写(VS2005,C#) 如何进入程序设计的领域 用ASP设计购物推车 - PENGHAO-X - 博客园 XHTML 1.0 参考 JS代码--HTML自动转为JS代码 - PENGHAO-X - 博客园 文本输入限制 - PENGHAO-X - 博客园 JS代码--选择日期
CSS hack:区分IE6,IE7,firefox
PENGHAO-X · 2008-07-04 · via 博客园 - PENGHAO-X

区别不同浏览器,CSS hack写法:

区别IE6FF

       background:orange;*background:blue;

区别IE6IE7

       background:green !important;background:blue;

区别IE7FF

       background:orange*background:green;

区别FFIE7IE6

       background:orange;*background:green !important;*background:blue;

注:IE都能识别*;标准浏览器(如FF)不能识别*;

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

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

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



IE6 IE7 FF
* ×
!important ×

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

于是大家还可以这样来区分IE6IE7firefox
: background:orange;*background:green;_background:blue;

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