div>span 是子选择,div span j是后代选择,
代码:
<div>
<span>1</span>
<h1><span>2</span></h1>
</div>
div>span只会选择1的那个span, div span则会选择所有span