背景图像放大在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;
}

任何帮助将不胜感激 - 我完全迷失了!

可能需要配置元视口标记。在iPhone中,视口的行为略有不同。

检查此项:配置视区

最新更新