:nth-child(n)不兼容ie8
实例:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>伪类选择器兼容IE8</title>
<style type="text/css">
//非IE8情況下
ul>li:nth-child(3){
list-style: none;
}
//ie8情況下
ul>li:first-child + li +li{
list-style: none;
}
</style>
</head>
<body>
<!--让三个li失去小圆点-->
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
</ul>
</body>
</html>