【发布时间】:2012-03-05 07:18:09
【问题描述】:
有谁知道为什么下面的 CSS 代码不能在 IE8 上运行,但它在所有其他浏览器上都可以运行?
table.wrap tr:first-child td, table.wrap tr:last-child td { height:20px; }
table.wrap td:first-child, table.wrap td:last-child { width: 20px; }
我了解 IE8 不支持 CSS3 功能。但我不认为我在这里使用 CSS3。
衷心感谢您的帮助。
非常感谢!
【问题讨论】:
-
当您说“所有其他浏览器”时,您显然不包括 IE6 或 IE7。 ;-)(因为他们也不支持)
-
你正在使用 CSS3,
:last-child伪类。
标签: css internet-explorer-8 css-selectors