component.css中修改background-image路径
.demo-1 .page-view .project:nth-child(1) { background-image:url(../img/nature-1.jpg) } .demo-1 .page-view .project:nth-child(2) { background-image:url(../img/nature-2.jpg) } .demo-1 .page-view .project:nth-child(3) { background-image:url(../img/nature-3.jpg) } .demo-1 .page-view .project:nth-child(4) { background-image:url(../img/nature-4.jpg) }
真可以