我是编程新手,我为朋友制作了我的第一个网站。 www.goalstars.be但显然登陆页面的背景图片不起作用尝试了这里发布的解决方案,但似乎没有解决它。我正在墙上奔跑。我想我在某个地方犯了一个大错。 希望有人能帮助我。在此先感谢背景图片不适用于Safari浏览器
这是CSS代码,我使用的标题
header {
background-image: url('img/landing.jpg');
background-repeat: no-repeat;
background-size: cover;
background-position: center;
height: 100vh;
background-attachment: fixed;
border-bottom: solid 1px #00AB1C;
z-index: -1;
}
[iOS的Safari浏览器不支持'背景附件:fixed'](http://caniuse.com/#feat=background-attachment) – Blazemonger
@Rob他们的斗争'的话,pardner。 – Blazemonger
@Blazemonger HTML和CSS是文档标记,而不是编程。 – Rob