下面是一个css后代选择器的例子,大家参考使用吧
复制代码代码如下: <style> .father .child1,.child2{ border:1px solid red;maring:5px; } </style> <div class="father"> 没有边框 <p class="child1">有边框 <a href="<a href="http://keleyi.com/a/bjac/wfxui1oc.htm">http://keleyi.com/a/bjac/wfxui1oc.htm</a>">本文</a> </p> <p class="child2">有边框 <a href="<a href="http://keleyi.com/a/bjac/wfxui1oc.htm">http://keleyi.com/a/bjac/wfxui1oc.htm</a>">本文</a> </p> </div>
|