如何让background里的img图片自适应 只需要添加 background-size: 100% 100%; 就行 div { background: url(); background-size: 100% 100%; }