[英]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.