:之后和:之前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 關注
- 419 瀏覽
相關問題推薦
添加回答
舉報
0/150
提交
取消