我有2個網站我創建 - 我如何獲得標題背景圖像在移動設備上正確調整大小?當在移動設備上觀看時,兩側的圖像被切斷。2 Bootstrap網站沒有背景圖片沒有響應
我在標題部分的代碼對於每個:
下面是每個碼:
segregatedsunday.com
#h {
background: url(../img/header.jpg) no-repeat center top;
padding-top: 180px;
text-align:center;
background-attachment: relative;
background-position: center center;
min-height: 700px;
width: 100%;
color: white;
-webkit-background-size: 100%;
-moz-background-size: 100%;
-o-background-size: 100%;
background-size: 100%;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
whitehatdev.co
#headerwrap {
background: url(../img/header_bg.jpg) no-repeat center top;
margin-top: -50px;
padding-top:120px;
text-align:center;
background-attachment: relative;
background-position: center center;
min-height: 650px;
width: 100%;
-webkit-background-size: 100%;
-moz-background-size: 100%;
-o-background-size: 100%;
background-size: 100%;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
查看我的移動網站時,標題背景圖片過大,即不響應。請參閱http://mobiletest.me/以在手機上查看。 –
P.Clark。繼續編輯您的原始問題陳述。告訴我們什麼是錯的。提示:圖片價值1000字。而那個mobiletest.me鏈接是毫無價值的。或者建立一個展示該問題的示例網頁。 etc ... – zipzit