IE8 nth-child()不兼容问题

参考博文

解决IE8下CSS3选择器 :nth-child() 不兼容的问题

博客解读

nth-child 不兼容ie8。但是first-child()是兼容ie8的。但是需要页面声明<!DOCTYPE>。
+是css选择器。是全部兼容的。

ul li:first-child{
    color:#fff;
}/*选取第一个li*/
ul li:first-child+li+li{
    color:#fff;
}/*选取第三个li*/
原文地址:https://www.cnblogs.com/gao123t/p/7784359.html