开发者

Excluding last-child

开发者 https://www.devze.com 2023-04-01 16:28 出处:网络
ul li:last-child selects the last element of a list. ul li:not(...) selects an 开发者_如何学编程element that is not something

ul li:last-child selects the last element of a list.

ul li:not(...) selects an 开发者_如何学编程element that is not something

What is the CSS selector for excluding the last child of an element? I tried ul li:not(last-child) but it didn't work.


Did you try:

ul li:not(:last-child)
0

精彩评论

暂无评论...
验证码 换一张
取 消