我找不到任何适合我的东西,而且由于我是一个剪切和粘贴 html 编辑器(我只知道主要的基本内容),我不理解其他大多数帖子。这是我正在使用的网页:http: //goo.gl/MgsoX4(我将它托管在保管箱上,因为我还没有完成它)。我的想法是每次刷新/重新加载页面时都会更改背景。我似乎找不到任何适合我的东西。背景的CSS如下:
#banner {
background-attachment: scroll, fixed;
background-color: #666;
background-image: url("images/overlay.png"), url("../images/1.jpg");
background-position: top left, center center;
background-repeat: repeat, no-repeat;
background-size: auto, cover;
color: #fff;
padding: 12em 0 20em 0;
text-align: center;
}
每当我将“../images/1.jpg”更改为“../images/2.jpg”时,背景将更改为第二个jpg,但我尝试了一个php图像旋转器,它不起作用!