.opencode[code="01"] { background: url(/static/images/theme/cars/car01.png) center no-repeat; background-size: cover; } .opencode[code="02"] { background: url(/static/images/theme/cars/car02.png) center no-repeat; background-size: cover; } .opencode[code="03"] { background: url(/static/images/theme/cars/car03.png) center no-repeat; background-size: cover; } .opencode[code="04"] { background: url(/static/images/theme/cars/car04.png) center no-repeat; background-size: cover; }
1 回答
慕姐8265434
TA贡献1813条经验 获得超2个赞
for i in 01 02 03 04 05 06 07 08 09 10
.opencode[code={i}]
background: url('/static/images/theme/cars/car' + i +
'.png') center no-repeat;
background-size: cover;
添加回答
举报
0/150
提交
取消