2012-12-29 85 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沒有辦法在那裏安裝插件。

相關問題