css nth-child 选择器的使用
nth-child()不是从0开始的,是从1开始的
.index-one li:nth-child(1):hover {
background: url(../images/one_bg.jpg) no-repeat;
}
.index-one li:nth-child(2):hover {
background: url(../images/one_bg.jpg) no-repeat;
}
.index-one li:nth-child(3):hover {
background: url(../images/one_bg.jpg) no-repeat;
}
欢迎访问每天进步网:https://meitianjinbu.cn/

浙公网安备 33010602011771号