Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在手机或iPad上查看背景图像时没有响应_Android_Html_Css_Mobile_Background - Fatal编程技术网

Android 在手机或iPad上查看背景图像时没有响应

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

我的网站背景图片有问题

当在浏览器chrome中重新调整大小时,它会响应应该如何调整大小,但是当我将其上载到服务器并从移动设备打开站点时,它不会重新调整大小。图像仅保持原始大小,并放大到图像的一个区域

有人能帮忙吗

代码如下:

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;}

我仍然无法让它工作,一直在谷歌搜索,似乎没有人能找到答案。