在wordpress的写文章页面插入 优酷,土豆,或者腾讯视频的代码时,有时在电脑端访问时,画面非常小。

以下面的代码为例:

<figure><iframe src="https://v.qq.com/txp/iframe/player.html?vid=x3032y7jnd4" allowfullscreen="true"></iframe></figure>

显示出来的内容就像下图:

在电脑端访问的时候太小气,也不好看。 所以需要将代码稍微修改一下

需要在代码里面加入大小设置 插入  height="400" width="800"  具体插入位置请参照下面的代码段

<figure><iframe height="400" width="800" src="https://v.qq.com/txp/iframe/player.html?vid=x3032y7jnd4" allowfullscreen="true"></iframe></figure>

这样显示大小就变得合适了,如下图

完美解决~