[quote=引用 1 楼 licanhome 的回复:] background-image: url("Image/redVoucher.png"); background-repeat: no-repeat; background-size: cover; 这个css样式就可以自适应的
楼上正解,background-size:cover的简写;表示“将背景图像等比缩放到完全覆盖容器,背景图像有可能超出容器。”
background-image: url("Image/redVoucher.png"); background-repeat: no-repeat; background-size: cover; 这个css样式就可以自适应的
61,111
社区成员
60,736
社区内容
加载中
试试用AI创作助手写篇文章吧