2017-10-20 19 views
0

私はこれを解決するためにどこでも検索しましたが、解決できないようです。メインの背景画像hereは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; 
} 

すべてのヘルプは非常に高く評価されるだろう - 私は完全に失われましたよこれ!

答えて

0

おそらくメタビューポートタグを設定する必要があります。 iPhoneではビューポートが少し違って動作します。

を確認してください。Configuring the viewport