css后代选择器使用方法实例
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>

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新 Div+Css教程学习
热门 Div+Css教程学习
网页设计子分类