Resposive背景不填充移动屏幕
问题描述:
我正在做一个简单的网站目前,我有一个封面背景,在桌面上看起来不错,但当我切换到移动时,背景只填满了一半的屏幕?Resposive背景不填充移动屏幕
这是我的代码。
.bg {
background: url('/imgs/storm.jpg');
background-repeat: no-repeat;
background-position: center;
background-size: cover;
background-attachment:fixed;
}
这里是页面的地址。
的jsfiddle:http://jsfiddle.net/djqma8ce/
答
你打算怎么约你的移动测试?在chrome开发人员工具中使用设备模式,它看起来像工作正常。