0
我正在嘗試使我的#header背景圖像變得流暢,因此它在任何移動設備上看起來都不錯。我正在使用這個模擬器來測試我的網站http://transmog.net/iphone-simulator/mobile-web-browser-emulator-for-iphone-5.php?u=http://toarumajutsunoindex.me/
背景圖片在chrome中沒有顯示正確的寬高比,但是在firefox中它工作正常。我真的不知道在真正的iphone上它看起來不錯。任何人都可以幫我修復背景嗎?背景圖像在某些瀏覽器上不能正確流暢
background-image: url(images/header.jpg);
background-repeat:no-repeat;
background-position:top;
background-size: 100%;
-webkit-background-size: 100%;
-moz-background-size: 100%;
-o-background-size: 100%;
width: 100%;
它不起作用它只是削減部分背景 – EdibleMuffin
然後將封面改爲100%。我使用封面是因爲我選擇了背景圖片,因此如果它們被切斷,它們在視覺上不會受到影響。 – samrap