css selector :first-child
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
The first-child
applies to the li
. It should select li
s that are first children under any div.
The first LI
inside a DIV
. Example.
1) First li's of every div on the page
精彩评论