关于css中的一些问题
.shortcut .fr ul li:nth-child(even) {
width: 1px;
height: 12px;
background-color: #666;
margin:9px 15px 0 15px;
}
我是希望偶数个的li标签按照上述样式设置
但我设置出来的li的粗细却不一样
回答
.shortcut .fr ul:nth-child(even) {
}
可以把li去掉试试
.shortcut .fr ul li:nth-child(even) {
width: 1px;
height: 12px;
background-color: #666;
margin:9px 15px 0 15px;
}
我是希望偶数个的li标签按照上述样式设置
但我设置出来的li的粗细却不一样
.shortcut .fr ul:nth-child(even) {
}
可以把li去掉试试