Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使我的背景图像适应每个屏幕,但我不知道该怎么做。
我有最大屏幕的大图像,但我想为每个屏幕尺寸调整图像大小
有没有办法做到这一点 ?
谢谢
使用background-sizeCSS 属性
background-size
background-size: 100% auto;