在很多时候,我们需要LI开头空一点距离。结尾不能再有下划线了。这个效果在以前是很难实现的。但是有了下面两个选择器,非常容易做出这种东西。
.slideTxtBox .bd ul > :first-child { margin-top: 15px; }
.slideTxtBox .bd ul > :last-child { border-bottom: 0px; }