首页 > 开发 > CSS > 正文

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

2024-07-11 08:35:30
字体:
来源:转载
供稿:网友

复制代码代码如下:
<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>

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表