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>


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3