开发者

css selector :first-child

开发者 https://www.devze.com 2023-01-10 12:10 出处:网络
div li:first-child what does above css selector target? First li\'s of every div on the page or All the descendant li\'s of the div where 开发者_JAVA百科div is the first child of its parent
div li:first-child

what does above css selector target?

  1. First li's of every div on the page

or

  1. All the descendant li's of the div where 开发者_JAVA百科div is the first child of its parent


The first-child applies to the li. It should select lis that are first children under any div.


The first LI inside a DIV. Example.


1) First li's of every div on the page

0

精彩评论

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