Android 在手机或iPad上查看背景图像时没有响应
我的网站背景图片有问题 当在浏览器chrome中重新调整大小时,它会响应应该如何调整大小,但是当我将其上载到服务器并从移动设备打开站点时,它不会重新调整大小。图像仅保持原始大小,并放大到图像的一个区域 有人能帮忙吗 代码如下:Android 在手机或iPad上查看背景图像时没有响应,android,html,css,mobile,background,Android,Html,Css,Mobile,Background,我的网站背景图片有问题 当在浏览器chrome中重新调整大小时,它会响应应该如何调整大小,但是当我将其上载到服务器并从移动设备打开站点时,它不会重新调整大小。图像仅保持原始大小,并放大到图像的一个区域 有人能帮忙吗 代码如下: html{ background: url(../img/bg.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: c
html{
background: url(../img/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background-position: 50% 50%;
background-color: #FFF;
}
对于小型设备,请使用以下属性
html{background size:100%auto;}我仍然无法让它工作,一直在谷歌搜索,似乎没有人能找到答案。