css后代选择器使用方法实例
摘要:.father.child1,.child2{border:1pxsolidred;maring:5px;}没有边框有边框本文有边框本文
<style>
.father .child1,.child2{
border:1px solid red;maring:5px;
}
</style>
<div>
没有边框
<p>有边框 <a href="<a href="http://keleyi.com/a/bjac/wfxui1oc.htm">http://keleyi.com/a/bjac/wfxui1oc.htm</a>">本文</a>
</p>
<p>有边框 <a href="<a href="http://keleyi.com/a/bjac/wfxui1oc.htm">http://keleyi.com/a/bjac/wfxui1oc.htm</a>">本文</a>
</p>
</div>
【css后代选择器使用方法实例】相关文章: