我曾尝试建立自己的网站,但我想要一个背景图片。我已经实现了它:
width: 100%;
height: 100vh;
background: url("images/background.jpeg");
background-size: cover;
background-position: center;
position: relative;
它在除 Safari 中的 iPad Pro 2019 之外的任何浏览器上都能正常工作:( 在我的 iPhone 上它也显示得很好,所以我不知道为什么会发生这种情况。
我已经试过了:
background-position:center;
background-attachment:scroll;
-o-background-size:cover;
-moz-background-size:cover;
-webkit-background-size:cover;
background-size:cover;
background-repeat:no-repeat;
这是有问题的页面:www.eliasmorgen.de(只是尝试一些东西)