Is the :last-child selector bad for performance?

前端 未结 3 2108
迷失自我
迷失自我 2021-02-09 05:47

I use :last-child selector plenty of times, mostly when using border-bottom in a list where I use border: none; for the last child, or whe

3条回答
  •  我在风中等你
    2021-02-09 06:20

    I believe it's still the simplest, low-performance way to get your last child. by that I mean, all others way to get the last child will be worse for performance, because it won't have any work done by the W3C community before.

提交回复
热议问题