有名的公司一欄<\/p>
Using this code we can easily draw the dom tree. <\/p>
<\/p>
<\/p>
When you see this DOM tree, do you suddenly feel that the amount of information is particularly large? It is very simple, because it is a tree, so there are some trees Characteristics, such as \"child node\", \"father node\", <\/p>
\"sibling node\", \"first left child\", \"last left child\", etc., correspond to the various things I will talk about later. In this case, let’s see if it feels good to see the html being stripped naked~~~~ <\/p>
1: Child node <\/p>
Finding child node, essentially there are two types, Really only find \"child nodes\", \"find all children (including descendants)\" <\/p>
<1> Descendant Selector <\/p>
First look at the html below, I think you can draw it easily Now that the DOM tree is out, the next question is how to paint all descendant spans in the body with red. <\/p>
<\/title>