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
你能提供一個截圖嗎? –