图片填充容器,如何描述JAY.LIN 收录于 未分类 2025-03-16 约 110 字 预计阅读 1 分钟 目录 图片填充容器,如何描述【图片需要完全填充/拉伸以适应容器尺寸,不保持原始比例,使用 object-fit: fill 属性实现】 效果: 代码案例:图片悬停渐变背景效果悬停图片查看效果.jpeg).jpg).png).jpeg)Please enable JavaScript to view the comments powered by Giscus.