在这里http://singh.mobi/nonni/ ,我的 body 背景为 1374x1074 的图像,但是当我们放大时,白色背景出现在右侧。
最佳答案
最近,我只是将 background-size
添加到 CSS,因为它现在得到了很好的支持:
body {
background: url("images/background.png") no-repeat scroll 0 0 #FFF;
background-color: #E6E6E6;
background-size: cover;
}
关于html - 主体背景的图像为 1374x1074,但在缩放时 -- 出现白色背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17712053/