如下图

video 标签已配置 object-fit: cover
翻查微信开放社区后,发现此问题官方暂未优化掉。https://developers.weixin.qq.com/community/develop/doc/000602ddaa86b0037e1e877fe5bc00
暂行解决办法:
在 video 标签样式增加 height: calc(var(--height) + 0.5px);
2024-01-15 51 0
如下图

video 标签已配置 object-fit: cover
翻查微信开放社区后,发现此问题官方暂未优化掉。https://developers.weixin.qq.com/community/develop/doc/000602ddaa86b0037e1e877fe5bc00
暂行解决办法:
在 video 标签样式增加 height: calc(var(--height) + 0.5px);