Android 封面后背景尺寸未缩放
这将是我在这里的第一个问题,告诉我我是编程新手 我有一个背景图像,在使用“背景大小:封面”或背景大小:100%100%后,它没有缩放 这个问题似乎只发生在android设备上 Min-width和Min-height不起作用,我遇到过几个类似问题的ppl,但它们的解决方案没有帮助 这是我的cssAndroid 封面后背景尺寸未缩放,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
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设备都显示相同的大小