前面我忘了写我的答案,我的答案是
/* 作导航分割线 */
.nav li:not(:last-child){
background: linear-gradient(to bottom, #eee, #000);
background-size: 1px 15px;
background-position: right center;
background-repeat: no-repeat;
}
小弟习惯分开写, 比较清晰, 如有错误, 希望各位大大多多指教
/* 作导航分割线 */
.nav li:not(:last-child){
background: linear-gradient(to bottom, #eee, #000);
background-size: 1px 15px;
background-position: right center;
background-repeat: no-repeat;
}
小弟习惯分开写, 比较清晰, 如有错误, 希望各位大大多多指教
2016-07-07
我觉得前面的大大有点错误, 如果是 .nav li 选择去的话 连最后一个li都会有分割线,加上题目是有伪元素, 所以选择器应该是 .nav li:not(:last-child){ /* css */ } 。
2016-07-07
其实有一部分蒙,是因为不知道老师要实现的是什么效果,建议大家下载源码下来看下效果,不看代码试着做一下,不会再带着这些目的看源码效果会更好。
2016-07-04