我:last-child多次使用选择器,主要是border-bottom在我border: none;用于最后一个孩子的列表中使用时,或者在使用边距时.所以我的问题是,:last-child从性能的角度来看,选择器是不是很糟糕?
:last-child
border-bottom
border: none;
另外我听说它已经从CSS2规范中删除了,因为使用:first-child很容易让浏览器检测到,但是为了检测:last-child它需要循环回来.
:first-child
css performance css-selectors css3
css ×1
css-selectors ×1
css3 ×1
performance ×1