css后代选择器使用方法实例
发布时间:2016-12-27 来源:查字典编辑
摘要:.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>