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-size: cover;
和
background-size: contain;
图像中似乎有足够的空白,以使页脚不会以任何方式使用contain. cover, 另一方面, 尽可能多地拉伸图像以覆盖整个 ,div反过来又被拉伸以覆盖整个页面。
contain
cover
div