码迷,mamicode.com
首页 > Web开发 > 详细

CSS 样式中的两个方法

时间:2017-09-19 11:11:24      阅读:212      评论:0      收藏:0      [点我收藏+]

标签:css   margin   实现   样式   txt   bottom   first   下划线   选择   

 

在很多时候,我们需要LI开头空一点距离。结尾不能再有下划线了。这个效果在以前是很难实现的。但是有了下面两个选择器,非常容易做出这种东西。

 

.slideTxtBox .bd ul > :first-child {
margin-top: 15px;
}

.slideTxtBox .bd ul > :last-child {
border-bottom: 0px;
}

CSS 样式中的两个方法

标签:css   margin   实现   样式   txt   bottom   first   下划线   选择   

原文地址:http://www.cnblogs.com/lystory/p/7549958.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!