我有一個1920x1080的大背景圖片。我想在着陸頁上使用它作爲完整的背景圖像。我在我的個人電腦上使用了Chrome,Firefox,Opera,並且它運行良好,即使在我的iPad上也是如此。但不是在我的應用程序Chrome應用程序的Android手機中,圖像在那裏,但它沒有填寫整個頁面,它只是在屏幕中間(portait模式)結束。我想用這張圖片填寫整個頁面背景。css背景圖像在Android上顯示錯誤
body{
background-image: url(bg_2.jpg);
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
}
**「maximum-scale = 1,user-scalable = no」** - 某處小狗在哭。請不要使用此...它不被推薦,並提供**非常**糟糕的用戶體驗。 –