我是編程新手,我爲朋友製作了我的第一個網站。 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