[WordPress] 外掛分享: iframe

首頁外掛目錄 › iframe
WordPress 外掛 iframe 的封面圖片
70,000+
安裝啟用
★★★★
4.4/5 分(56 則評價)
89 天前
最後更新
問題解決
WordPress 3.0+ v6.0 上架:2011-04-27

內容簡介

高級 iFrame Pro
iframe
捐贈
GitHub

[iframe src=”http://www.youtube.com/embed/oDlbBy9vfgI” width=”100%” height=”500″] 短代碼,應顯示類似下列的內容:

由於安全原因,WordPress 會刪除 iframe HTML 標籤。

iFrame 短代碼是 iframe HTML 標籤的替代,接受相同的參數。

您可以使用 iFrame 短代碼來嵌入來自 YouTube、Vimeo、Google 地圖或任何外部網頁的內容。

如果您需要通過直接鏈結嵌入來自 YouTube、Vimeo、SlideShare、SoundCloud、Twitter 的內容,您可以使用 短代碼。

https://youtube.com/watch?v=oDlbBy9vfgI%22%5D%EF%BC%9B%E9%A0%90%E8%A8%AD%E7%82%BA+src%3D%26%238221%3Bhttp%3A shortcode.
shortcode is a core WordPress feature and can embed content from many resources via direct link.
Important: You can not embed HTTP pages into HTTPS pages and vice versa.
So the protocol (http or httpS) for parent and embedded page should match.
iframe params:

src – source of the iframe: [iframe src="http://www.youtube.com/embed/7_nAZQt9qu0"]; by default src=”http://www.youtube.com/embed/7_nAZQt9qu0″;
width – width in pixels or in percents: [iframe width="100%"] or [iframe width="600"]; by default width=”100%”;
height – height in pixels: [iframe height="500"]; by default height=”500″;
scrolling – with or without the scrollbar: [iframe scrolling="no"]; by default scrolling=”yes”;
frameborder – with or without the frame border: [iframe frameborder="0"]; by default frameborder=”0″;
marginheight – height of the margin: [iframe marginheight="0"]; removed by default;
marginwidth – width of the margin: [iframe marginwidth="0"]; removed by default;
allowtransparency – allows to set transparency of the iframe: [iframe allowtransparency="true"]; removed by default;
id – allows to add the id of the iframe: [iframe id="custom_id"]; removed by default;
class – allows to add the class of the iframe: [iframe class="custom_class"]; by default class=”iframe-class”;
style – allows to add the css styles of the iframe: [iframe style="margin-left:-30px;"]; removed by default;
same_height_as – allows to set the height of iframe same as target element: [iframe same_height_as="div.sidebar"], [iframe same_height_as="div#content"], [iframe same_height_as="body"], [iframe same_height_as="html"]; removed by default;
any_other_param – allows to add new parameter of the iframe [iframe any_other_param="any_value"];
any_other_empty_param – allows to add new empty parameter of the iframe (like “allowfullscreen” on youtube) [iframe any_other_empty_param=""];

延伸相關外掛

文章
Filter
Apply Filters
Mastodon