我有一个使用 twitter bootstrap 3 构建的网站,它适用于 IE7 以外的所有浏览器。
它不会读取伪类,例如 before:
、after:
和 box-sizing: border-box
。
无论如何我可以让 IE7 阅读这段代码吗?
最佳答案
http://ie7-js.googlecode.com/svn/test/index.html
IE7.js 支持以下属性
Property Comments Test
background-attachment support fixed positioning html
background-image PNG alpha transparency (IE5.5+) html
bottom height implied if top is supplied html
cursor support pointer for IE5.x html
display convert list-item to block for IE5.x
font-size fix named font sizes (IE5.x) html
margin support auto (IE5.x) html
max-height html
max-width html
min-height implemented for IE5 html
min-width html
overflow support overflow:visible html
position support fixed positioning html
right width implied if left is supplied html
IE8.js 支持以下内容:
Selector Comments Test
::after html
::before html
:active html
:focus html
:lang() html
CSS Properties
Property Comments Test
border-spacing HTML tables only html
box-sizing content-box (assumed) html
content Supports the use of attr() and url() html
property: inherit Support for inherited property values html
关于css - 如何在: and after: and box-sizing:border-box work in ie7之前制作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21034219/