我有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