任务三:设置缩略图背景图像
/*任务三、设置缩略图背景图像*/
.clearfix a:nth-of-type(1)::after {
background: url(1.jpg) no-repeat center;
}
.clearfix a:nth-of-type(2)::after {
background: url(2.jpg) no-repeat center;
}
.clearfix a:nth-of-type(3)::after {
background: url(3.jpg) no-repeat center;
}
.clearfix a:nth-of-type(4)::after {
background: url(4.jpg) no-repeat center;
}
.clearfix a:nth-of-type(5)::after {
background: url(5.jpg) no-repeat center;
}所有a元素的背景缩略图都应用的第一个
但是我用的nth-of-type(n)设置了对每个a元素应用不同的缩略图的啊