2012-12-29 83 views
0

我在使用iframe的WordPress网站中嵌入视频。但该视频并未在我的页面上完整显示。只有视频的左侧部分可见。剩余的部分正在减少。我无法在iframe中设置视频。怎么做?

我使用的代码是:

<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但没有设置不同的值工作。在这种情况下我应该做什么?

+0

几乎类似的问题:http://stackoverflow.com/questions/9811740/emedded-video-controls-width?rq=1但没有人在那里回答。 – narayanpatra

+0

你可以做[小提琴](http://jsfiddle.net/) – Rahul

回答

0

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

如果您的博客托管在wordpress.com,那么我很抱歉,AFAIK没有办法在那里安装插件。

相关问题