我使用这段代码在我的桌面上全屏显示图像
<style>
body{
background: url("under-constraction1.jpg")no-repeat fixed 0 0 / cover ;
}
</style>
但在 Firefox 浏览器的移动设备中显示了我的图像
我该如何解决?
最佳答案
使用这个
body{
background: url("under-constraction1.jpg") no-repeat center center fixed
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
关于css - 全屏背景图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39114715/