video 得背景图 poster 可以为video添加背景图片
有的时候 发现背景图片 没有平铺整个视频区域
解决方案
1.css 方案
效果:
兼容性
相关链接 https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-fit
2.添加img
效果
video 得背景图 poster 可以为video添加背景图片
有的时候 发现背景图片 没有平铺整个视频区域
解决方案
1.css 方案
效果:
兼容性
相关链接 https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-fit
2.添加img
效果
上一篇:监听页面离开事件
下一篇:下拉加载更多+防止多次触发
用css实现一个小清新的动态毛玻璃背景效果。
借助 css transition 属性绘制出一个背景收缩交互的一个按钮。
居中、满屏、自适应
还可以用于列表元素,甚至搜索框内展示图标也可以借此实现。属性可应用于绝大部
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M