【问题标题】:I can't set the video in iframe. How to do it?我无法在 iframe 中设置视频。怎么做?
【发布时间】:2012-12-14 09:36:49
【问题描述】:

我正在使用 iframe 在 wordpress 网站中嵌入视频。但是视频没有完全显示在我的页面上。只有视频的左侧部分可见。剩余的部分正在被切割。

我使用的代码是:

<P ALIGN=left><iframe src="http://www.abc.com/embed/B5EECA7CE46B5A09" height="460" width="800" frameborder="0" scrolling="no" marginwidth="10"></iframe></P>

我从网站得到的实际代码是

<iframe src="http://www.abc.com/embed/B5EECA7CE46B5A09" width="600" height="360" frameborder="0" scrolling="no"></iframe>

所以我尝试设置左对齐,为 marginwidth 设置不同的值,但没有任何效果。在这种情况下我该怎么办?

【问题讨论】:

标签: html css video iframe embed


【解决方案1】:

默认情况下,WordPress 不允许您在帖子或 cmets 中添加一些 html 标签(iframesstylescript...)。您必须安装一个插件(例如 http://wordpress.org/extend/plugins/easy-iframe-loader/)才能在 wordpress 中使用 iframe。

如果您的博客托管在 wordpress.com 上,那么对不起,AFAIK 无法在那里安装插件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-02
    • 2015-09-07
    • 1970-01-01
    • 2021-03-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多