為什么 給a添加為元素后,最后無法通過last-child來去除最后這條填充的線條?
.nav li a:after{
? ? ? ? ? ? content: "";
? ? ? ? ? ? position: absolute;
? ? ? ? ? ? right: 0px;
? ? ? ? ? ? top: 18px;
? ? ? ? ? ? width: 1px;
? ? ? ? ? ? height: 14px;
? ? ? ? ? ? text-shadow: none;
? ? ? ? ? ? background: linear-gradient(to bottom,#f82f87,#B0363F,#f82f87)
? ? ? ? }
? ? ? ??
? ? ? ? .nav li a:last-child:after{
? ? ? ? ? ? ?height:0px;
? ? ? ? ? ? ?width:0px;
? ? ? ? ?}
2015-10-26
用偽類就好
2015-10-15
?把兩個(gè)a 去掉就可以了