0
Ehy there!任何人都可以建议如何获得完全响应的背景图像,无论哪个设备在? 或者如果屏幕处于纵向模式或横向模式?在iPad /移动设备上缩小页面
现在我拥有的图像覆盖了iPad页面处于横向模式时的效果,但屏幕在纵向模式下显示时太短。
这就是我尝试了包括身高在内的所有东西:auto;宽度:自动;
#home {
background-image: url('london-pic.jpg');
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: cover;
position: relative;
height: auto;
max-width: 100%;
min-height: 720px;
overflow: hidden;
}
Piotr我试过了 - 图像被剪成两半。 – Alessandro
你能提供一个截图吗? –