css - 如何在: and after: and box-sizing:border-box work in ie7之前制作

标签 css internet-explorer-7 twitter-bootstrap-3

我有一个使用 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/

相关文章:

html - 如何在 IE7 模式下保持这两个按钮之间的空间?

javascript - 在输入焦点上使背景看起来像模态

iphone - 按比例缩小的图像在移动 safari 中模糊不清(仅在一页上)

java - 通过java bean显示html字符

iframe - youtube嵌入在stickytop导航上-IE7

javascript - IE7 不支持本地存储

javascript - 从另一个页面直接链接到特定的选项卡 Pane

jquery - Angular.js 和 Bootstrap - jQuery 依赖项

php - 无法显示 Font-Awesome 图标

css - 重复线性渐变中的百分比实际上是如何工作的?