2
我有一个背景图像的DIV。在电脑上它看起来不错,但是当我进入移动设备时它确实放大了?div在移动的背景图像
这里是我的HTML和CSS代码:
.vh {
width: 100vw;
height: 100vh;
position: absolute;
background: url("http://autohof.coersonline.nl/wp-content/uploads/2016/09/Headerplaat-4.jpg") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
<div class="vh">
</div>
感谢您的时间!
尝试'背景尺寸:100%' –
@PrasathV当我做到这一点上移动图像显示犯规。 –
你有没有设置元标记''? –