CSS nth-match不起作用

nth-match应该按照以下方式在jsfiddle中工作

:nth-match(even of p,h3) {text-decoration: underline;}

这应该强调每一秒p和每个h3要素。但是,它不起作用-既不在FF中也不在Chrome中:

哪里出问题了?

回答:

CSS4选择器目前没有太多的浏览器支持,您可以使用nth-of-type具有更多浏览器支持的CSS3选择器

p:nth-of-type(even) {text-decoration: underline;}

以上是 CSS nth-match不起作用 的全部内容, 来源链接: utcz.com/qa/422655.html

回到顶部