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

推荐订阅源

博客园_首页
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
G
Google Developers Blog
B
Blog
Engineering at Meta
Engineering at Meta
阮一峰的网络日志
阮一峰的网络日志
The Register - Security
The Register - Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
The Cloudflare Blog
The Hacker News
The Hacker News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
雷峰网
雷峰网
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
A
About on SuperTechFans
量子位
Recorded Future
Recorded Future
博客园 - 三生石上(FineUI控件)
H
Help Net Security
Help Net Security
Help Net Security
P
Palo Alto Networks Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Troy Hunt's Blog
W
WeLiveSecurity
V
Vulnerabilities – Threatpost
T
The Exploit Database - CXSecurity.com
Know Your Adversary
Know Your Adversary
Apple Machine Learning Research
Apple Machine Learning Research
Scott Helme
Scott Helme
N
News | PayPal Newsroom
AWS News Blog
AWS News Blog
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
腾讯CDC
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
TaoSecurity Blog
TaoSecurity Blog
GbyAI
GbyAI
Y
Y Combinator Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
D
Docker

博客园 - Fernando

div 图片垂直居中问题 连续字符自动换行的解决方案 border: none 0 如何使用fiddler在firefox下通过2层代理调试网页 CSS hacks 【代码美化】CSS代码格式化和JS代码格式化工具 Fiddler的几个使用技巧 如何直接调试线上页面的JavaScript和CSS 敏捷软件开发模型--SCRUM 第一章:逻辑与证明 第九城市 Cognizant 高知特 上海瑞润电子科技有限公司 上海梵科信息科技有限公司 班库(上海)商务咨询有限公司 上海蓝矩信息科技有限公司 C# 中的委托和事件详解 关于Session_End()运行机制的一些细节! 无法打开 open a new function library
*:first-child+html CSS Hack
Fernando · 2009-03-15 · via 博客园 - Fernando

If the background color of this paragraph is green (a darker green than this page's background) then the hack was applied.

Example Code

p.test {
  background-color: #f66;
}

*:first-child+html p.test {
  background-color: #6f6;
}

List of browsers that apply this

  • IE7, when in Standards Compatibility mode

List of browsers that do not apply this

  • IE7, when in backwards compatibility mode (aka quirks mode)
  • IE4-6/Win
  • Firefox
  • NS6.0-7.2
  • NS4.x
  • Opera 5+
  • Safari
  • Konqueror 3
  • iCab 3
  • IE5.x/Mac

Note: IE5.5/Win and IE6/Win will ignore any rule that use this selector hack, even if there are multiple selector chains, each separated by a comma, and one of the others would normally apply to an element in the document. This is a very serious parser bug. This is demonstrated in the second test below.

If the background color of this paragraph is green then the hack works. If this is yellow then the browser supports the "* html" (star html) hack, but ignores the second rule.