[英]Background image zooming in on iPhone
我到处都在寻找解决方案,但似乎无法解决。 此处的主要背景图片在iPhone上大幅放大。 这是我的背景图片代码:
.home-featured {
background-image: url(/Roombg2.jpg);
background-repeat: no-repeat;
background-position: center center;
background-attachment: scroll;
background-color: #bbbbbb;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
我不确定其他家用功能CSS是否会引起任何问题:
.home-featured .wrap {
margin-top: -160px;
max-width: 782px;
display: table;
text-align: center;
}
.home-featured .home-widgets-1 {
display: inline-block;
display: table-cell;
vertical-align: middle;
width: 100%;
padding: 200px 0;
font-size: 20px;
}
任何帮助将不胜感激-我完全迷失了!
可能您需要配置meta视口标签。 在iPhone中,视口的行为略有不同。
请检查以下内容: 配置视口
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.