我想知道ul>li,这个是不是一个书写方式。效果是和ul li,这样写一样的。因为都是选择ul标签下的li标签,这种写法我是之前看老师课程学到的。有小伙伴们解释下么,加好友共同学习哦。
2015-01-04
.nav li:after{ content:""; color:#f65f57;width:1px;height:20px;top:15px; position:absolute; left:-1px; background-image:linear-gradient(to bottom,#f65f57,#777,#f65f57);}
/*删除第一项和最后一项导航分隔线*/
.nav li:first-child:after{content:""; background:none;}
/*删除第一项和最后一项导航分隔线*/
.nav li:first-child:after{content:""; background:none;}
2015-01-04
已采纳回答 / JustDo_IT
.nav li:after{
content:"";
position:absolute;
top:17px;
right:0px;
width:1px;
height:15px;
background:linear-gradient(to bottom, #f82f87,#A24,#f82f87); }.nav li:last-child::after{backg...
2015-01-04