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.
假设我有一张 1000x1000 的图片。
有没有办法为在页面加载时缩放或缩放的 300x300 表格设置背景图像,以便它以 2000 x 2000 大小而不是 1000 x 1000 显示该图像的特定部分?
你可以使用CSS3 background-size 属性
但并非所有浏览器都支持它:http ://caniuse.com/#search=background-image%20options