分类: Html/Css
2016-07-05 10:48:03
css3的nth-child(n)的兼容性问题
/* standard nth */ ul.menu li:nth-child(3) { /* styles for the 3rd LI */ } /* IE nth */ ul.menu>li + li + li { /* styles for the 3rd LI */ } /* alternate, more specific IE nth */ ul.menu>li:first-child + li + li { /* styles for the 3rd LI */ } 参考链接: