<!doctype?html>
<html>
<head>
????<meta?charset="UTF-8">
????<title>Document</title>
????<style>
????????.div1{
????????????background-color:?#cccccc;
????????????width:?150px;
????????????height:?150px;
????????}
????????.div1>div{
????????????background-color:?#0050ef;
????????????height:?50px;
????????????width:?50px;
????????}
????????.div1?div{
????????????background-color:?#0050ef;
????????????height:?50px;
????????????width:?50px;
????????}
????</style>
</head>
<body>
????????<div>
????????????<div>
????????????????<p>
????????????????????<p>
????????????????????????<div>
????????????????????????</div>
????????????????????</p>
????????????????</p>
????????????</div>
????????</div>
</body>
</html>
經(jīng)過(guò)測(cè)試,
空格 會(huì)指向改選擇器下的所有匹配元素
>只會(huì)指向一級(jí) 不會(huì)指向所有層級(jí)