Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.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 封面后背景尺寸未缩放_Android_Html_Css - Fatal编程技术网

Android 封面后背景尺寸未缩放

Android 封面后背景尺寸未缩放,android,html,css,Android,Html,Css,这将是我在这里的第一个问题,告诉我我是编程新手 我有一个背景图像,在使用“背景大小:封面”或背景大小:100%100%后,它没有缩放 这个问题似乎只发生在android设备上 Min-width和Min-height不起作用,我遇到过几个类似问题的ppl,但它们的解决方案没有帮助 这是我的css body { background-image: url("../img/bck-img.png"); background-color: transparent !i

这将是我在这里的第一个问题,告诉我我是编程新手

我有一个背景图像,在使用“背景大小:封面”或背景大小:100%100%后,它没有缩放

这个问题似乎只发生在android设备上

Min-width和Min-height不起作用,我遇到过几个类似问题的ppl,但它们的解决方案没有帮助

这是我的css

body {

        background-image: url("../img/bck-img.png");
        background-color: transparent !important;
        background-position: center center;
        background-size: 100% 100%;
        -webkit-background-size: 100% 100%;
        -moz-background-size: 100% 100%;
        -o-background-size:100% 100%;
        background-attachment:fixed ;
        background-repeat:no-repeat;
        /*
        background-size: cover;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size:cover;
        background-attachment:fixed ;
        */
        background-repeat:no-repeat;
        min-height:100%;
        width:100%;
        }   

html{  /*height:100%;*/ min-height:100%; width: 100%;}


#nav1 {
width: 100%;
height:35%;
margin: 0 0 0 0;
position:fixed;
left:0px;
top:0px;}
这些评论是不同的试错解决方案
谢谢

您正在测试的Android设备可能不支持
背景大小
我测试过的所有Android设备都显示相同的大小