距开课0天0时0分-10207693秒
代言2017-01-09 17:49:30 0 1 439
[HTML讨论组]举报回复话题 ↕
<head> <style type="text/css"> .aa div p{ width:200px; height:200px; background:blue; } .bb{ width:100px; height:100px; background:red; } </style></head><body> <div class="aa"> <div> <p class="bb"></p> </div> <div> <p></p> </div> </div></body>
1
0
分享
大家讲道理 2017-01-09 17:49:391楼
css选择器优先级<----传送门.aa div p的优先级比.bb高。然后你可以再研究些一手资料。
赞 +0添加回复
大家讲道理 2017-01-09 17:49:391楼
css选择器优先级<----传送门
.aa div p的优先级比.bb高。
然后你可以再研究些一手资料。
赞 +0添加回复