AutoCAD 3DMAX C语言 Pro/E UG JAVA编程 PHP编程 Maya动画 Matlab应用 Android
Photoshop Word Excel flash VB编程 VC编程 Coreldraw SolidWorks A Designer Unity3D
 首页 > css教程

css后代选择器使用方法实例

51自学网 http://www.wanshiok.com
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>


css,后代选择器  
上一篇:CSS样式子代选择符(大于号 >)使用实例  下一篇:div清除浮动css样式代码分享(4种方法)