开发者

css selector :first-child

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜