在 UEditor 中插入 Bilibili 视频时,默认的 iframe 嵌入代码可能会导致视频宽高太小,影响观看体验。我们可以通过调整 iframe 的 width 和 height 属性来设置合适的尺寸。
以下是具体的解决方法:
一、手动调整 iframe 的宽高属性
你可以在嵌入代码中直接添加或修改 width 和 height 属性,指定视频的宽度和高度。例如:
<iframe
src="//player.bilibili.com/player.html?isOutside=true&aid=114175447670477&bvid=BV1SUQqYxE3F&cid=28906619590&p=1"
scrolling="no"
border="0"
frameborder="no"
framespacing="0"
allowfullscreen="true"
width="800"
height="450">
</iframe>
width:设置视频的宽度(单位为像素)。height:设置视频的高度(单位为像素
UEditor 插入 B 站视频宽高调整方法

最低0.47元/天 解锁文章
8966

被折叠的 条评论
为什么被折叠?



