提问人:user449199 提问时间:9/8/2023 更新时间:9/8/2023 访问量:14
修复了背景图像位置在iphone中不起作用的问题
Fixed Background image position is not working in iphone
问:
我正在将图像设置为固定背景并居中位置。它在 chrome 和 firefox 中工作正常。但不能在iphone safari中工作。这是我正在使用的 css
body.result.regifruit .container {
background: url(../img/lemon-black-background-mobile.jpg);
background-size: cover;
-o-background-size: cover;
-moz-background-size: cover;
-webkit-background-size: cover;
background-attachment: fixed;
background-position-x: center;
background-position-y: center;
}
请帮我解决这个问题。
谢谢
答: 暂无答案
评论