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

推荐订阅源

J
Java Code Geeks
爱范儿
爱范儿
Attack and Defense Labs
Attack and Defense Labs
量子位
The GitHub Blog
The GitHub Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Scott Helme
Scott Helme
C
CXSECURITY Database RSS Feed - CXSecurity.com
博客园 - 叶小钗
C
Cybersecurity and Infrastructure Security Agency CISA
S
Securelist
S
Schneier on Security
C
Cisco Blogs
B
Blog RSS Feed
Cisco Talos Blog
Cisco Talos Blog
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
腾讯CDC
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
Y
Y Combinator Blog
Latest news
Latest news
T
Tailwind CSS Blog
Jina AI
Jina AI
宝玉的分享
宝玉的分享
人人都是产品经理
人人都是产品经理
C
CERT Recently Published Vulnerability Notes
D
Darknet – Hacking Tools, Hacker News & Cyber Security
L
Lohrmann on Cybersecurity
The Cloudflare Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Security Blog
Microsoft Security Blog
H
Help Net Security
P
Palo Alto Networks Blog
V
V2EX
博客园_首页
D
Docker
T
Threat Research - Cisco Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
Vulnerabilities – Threatpost
月光博客
月光博客
D
DataBreaches.Net
Stack Overflow Blog
Stack Overflow Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Know Your Adversary
Know Your Adversary
L
LangChain Blog
The Hacker News
The Hacker News
K
Kaspersky official blog
The Register - Security
The Register - Security
NISL@THU
NISL@THU

博客园 - PENGHAO-X

indows 8上强制Visual Studio以管理员身份运行 jQuery中浏览器版本判断的一个BUG,此BUG已影响到jqModal,thickbox等多个jQuery插件的应用 [注意]你的系统中存在这个BUG吗?(正则表达式验证) SQL 2005 except,intersect .NET Framework 3.5中序列化成JSON数据及JSON数据的反序列化,以及jQuery的调用JSON Windows 2003 远程桌面连接出错解决办法。(由于协议错误,会话将被中断。请重新连接到远程计算机。) CSS hack:区分IE6,IE7,firefox 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代码--选择日期
[收藏 ]针对IE网页浏览器不同版本解释的CSS或javascript
PENGHAO-X · 2009-02-16 · via 博客园 - PENGHAO-X

用法:

<!--[if lt IE 8]>
code here
<![endif]-->

解释语句如下:

  • gt = selects greater than(高于)
  • lt = selects less than(低于)
  • gte = selects greater than or equal to(>=)
  • lte = selects less than or equal to(<=)
  • ! = selects everything except what directly follows the "!"(选择所有,除了!)

实际应用:

  • 选择IE5.01版,可以用"<!--[if ie 5.0]>"
    或者"<!--[if Ite ie 5.0]>"
    或者"<!--[if !gt ie 5.0]>"
    或者"<!--[if lt ie 5.0000]>"
    或者"<!--[if !gte ie 5.5000]>"
  • 选择IE5.5,IE6.0,IE7.0,可以用"<!--[if !ie 5.0]>"
    或者"<!--[if gt ie 5.0]>"
    或者"<!--[if !lte ie 5.0]>"
    或者"<!--[if !lt IE 5.5000]>"
    或者"<!--[if gte IE 5.5000]>"
  • 选择IE5.5,可以用"<!--[if ie 5.5000]>"
  • 选择IE 5.01,IE6 ,IE7.0,可以用"<!--[if !IE 5.5000]>"
  • 选择IE 6,可以用"<!--[if IE 6]>"
  • 选择IE 5.01,IE5.5和IE7.0 ,可以用"<!--[if !IE 6]>"
  • 选择IE 7.0,可以用"<!--[if IE 7.0]>"
    或者"<!--[if !lte IE 6]>"
    或者"<!--[if gt IE 6]>"
    或者"<!--[if !lt IE 7.0]>"
    或者"<!--[if gte IE 7.0]>"
    或者"<!--[if !lt IE 7]>"
    或者"<!--[if IE 7]>"
    或者"<!--[if gte IE 7]>"
  • 选择IE 5.01,和IE5.5和IE6 ,可以用"<!--[if lte IE 6]>"
    或者"<!--[if !gt IE 6]>"
    或者"<!--[if lt IE 7.0]>"
    或者"<!--[if !gte IE 7.0]>"
    或者"<!--[if lt IE 7]>"
    或者"<!--[if !gte IE 7]>"
    或者<!--[ if !IE 7.0]>"
    或者"<!--[if !IE 7]>"
  • 选择IE 5.01和IE5.5,可以用"<!--[if IE 5]>"
    或者"<!--[if lte IE 5]>"
    或者"<!--[if !gt IE 5]>"
    或者"<!--[if lte IE 5.5000]>"
    或者"<!--[if !gt IE 5.5000]>"
    或者"<!--[if lt IE 6]>"
    或者"<!--[if !gte IE 6]>"
  • 选择IE 6和IE7.0,可以用"<!--[if !IE 5]>"
    或者"<!--[if !lte IE 5]>"
    或者"<!--[if gt IE 5]>"
    或者"<!--[if !lte IE 5.5000]>"
    或者"<!--[if gt IE 5.5000]>"
    或者"<!--[if !lt IE 6]>"
    或者"<!--[if gte IE 6]>"
  • 选择IE 5.01和IE5.5和IE6和IE7.0,用"<!--[if lte IE 7.0]>"
    或者"<!--[if gte IE 5]>"
    或者"<!--[if gte IE 5.0]>"
    或者"<!--[if lte IE 7]>"
    或者"<!--[if IE]>"
  • 没有IE 5.01和IE6
  • 没有IE 5.01和IE7.0
  • 没有IE 5.5和IE6
  • 没有IE 5.5和IE7.0

posted @ 2009-02-16 15:05  PENGHAO-X  阅读(725)  评论()    收藏  举报