我已将背景图像添加到 div,但图像未显示,请帮我解决我所缺少的问题。 这是代码 CSS:
.riseImages
{
position: absolute;
top: 0px;
width: 100%;
height: 650px;
overflow: hidden;
z-index: 4;
background-image: url("img\page1\bg shapes.png");
background-repeat: repeat;
background-size: initial;
/*-webkit-animation-name: rise;
-webkit-animation-duration: 18s;
-moz-animation-delay: 18s;
-webkit-animation-delay: 18s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;*/
}
html:
<div class="riseImages topRise"></div>
<div class="riseImages bottomRise"></div>
我没有得到想要的输出,背景图像没有显示,之前它工作正常。
最佳答案
使用 CSS:
background-image: url("img/page1/bg shapes.png");
关于jquery - 我使用 div 添加了背景图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32794208/