nth-last-child()和nth-last-of-type() 的区别、以及选择则倒数几个元素
工作中老用到css选择器对nth-last-child()和nth-last-of-type()用法不是熟练,今天整理下。最开始看的w3c的中文文档,看的有点蒙,后来发现可能是翻译问题。。。直接上例子吧。1、nth-last-child()The:nth-last-child(n)selector matches every element that is thenth ...
原创
2020-04-08 00:22:23 ·
5247 阅读 ·
0 评论