如何在手机间隙android中设置完整屏幕的背景图像?
问题描述:
在手机缝隙背景图像的Android版本没有完全覆盖的屏幕虽然采用attachmend固定在具有高分辨率图像如何在手机间隙android中设置完整屏幕的背景图像?
body {
background-image: url("../www/img/tracker_bg.jpg");
background-size: cover;
background-repeat: no-repeat;
}
虽然和不断改变的样式设置的背景,但对一些屏幕它不是覆盖全屏幕回地面
答
你可以试试这个CSS3代码:
body{
background: url(img/tracker_bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
帮助从here
你试过我的答案吗? – Amy