解决方式: 使用 background-size: cover; 图片还是无法铺满div, 临时找到使用 background-attachment: fixed;铺满盒子。 不过有一个小问题就是 在页面放大的时候,因为 background-attachment: fixed 不会随着页面放大而放大,会出现放大情况下铺不满div .login-box { width: 540px; height: 300px; border-radius: 3px; background: url(