:之后和:之前css伪元素攻击IE 7我正在使用:after和:beforecss伪元素,它在IE8和所有现代浏览器中工作正常,但它在IE7中工作不正常。在IE7中有没有可以解决这个问题?
3 回答
当年话下
TA贡献1890条经验 获得超9个赞
在使用之前和之后:
.tabs {
*zoom: expression(
this.runtimeStyle.zoom="1",
this.insertBefore(
document.createElement("div"),
this.childNodes[0]
).className="before",
this.appendChild(
document.createElement("div")
).className="after"
);}....tabs::before, .tabs .before {
display: block;
width: 10px;
height: 20px;
background-color: #eee;
float: left;}.tabs::after, .tabs .after {
display: block;
width: 10px;
height: 20px;
background-color: #c0c;
float: left;}- 3 回答
- 0 关注
- 487 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消
