1.ie8是兼容偽元素的,不兼容偽類。一個冒號是偽元素:after,兩個冒號是偽類::after,在寫需要兼容ie頁面時,注意寫法。
2.rgba半透明度在ie8是不兼容的,可以在頁面引入判斷語句。
<!--[if lt IE 9]>
<style type="text/css">
.img_box_over{
background:transparent;
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f000000,endColorstr=#7f000000);
zoom: 1;
}
</style>
<![endif]-->
3.nth-child()是不兼容ie8以下版本的。在多個商品排列顯示時,是不能控制某個右邊距或左邊距為0的,可以在外圍的ul設置padding-left/rihgt來做以下調整。
<ul>
<li>01</li>
<li>02</li>
<li>03</li>
<li>04</li>
<li>05</li>
</ul>
4.end