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.
我想实现与以下相同的 CSS 行为:background-size: contain。
background-size: contain
但我只能选择信箱或拉伸:
当我们同时提供宽度和高度作为约束时,我们如何保持纵横比?