我有一个使用固定背景图像的项目。它适用于除 ios7 之外的所有设备。在 ipad 上,背景图像被放大且模糊。这是我正在使用的 CSS 代码 -
.header {
display: table;
height: 100%;
width: 100%;
position: relative;
color: #fff;
background: url(../images/boston2.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
这是实时页面的链接 - www.wdeanmedical.com
我错过了什么?
原文由 user2560895 发布,翻译遵循 CC BY-SA 4.0 许可协议
background-attachment: fixed
已在 MacOS 的 Safari 15.5 版中修复( 参考)。它仍然是 Safari for iOS ( ref ) 中的一个问题。