
內容簡介
Auto iFrame 外掛可以輕鬆快速的將 iframe 嵌入到頁面中,並能夠自動調整 iframe 大小以適應嵌入頁面的內容。
Auto iFrame 的縮寫格式如下:
[auto-iframe link=xxx tag=xxx width=xxx height=xxx autosize=yes/no]
其中:
link = iframe 的來源 URL,為必填項目。
tag = 唯一的標識符,以區分頁面中的多個 iframe。 預設值為 auto-iframe。
width = iframe 的寬度(預設狀態下為 100%)。可設定百分比或像素值。預設值為 100%。
height = iframe 的起始高度(預設狀態下為 100%)。可設定百分比或像素值。預設值為 100%。
autosize = 啟用自動調整 iframe 大小。iframe 的起始高度會設定為 "height" ,然後進行自動調整。預設值為 true。
fudge = 調整高度的補正值(正整數,不加 "px")。預設值為 50。
border = 啟用 iframe 邊框。預設值為 0。
scroll = 啟用 iframe 捲軸。預設值為 no。
query = 傳遞父頁面的查詢字符串給 iframe。預設值為 no。
注意:跨域網站的自動調整 iframe 大小不起作用,這是瀏覽器提供的安全保護措施,沒有任何解決方案。
現在支援 (Shortcode UI)[https://github.com/fusioneng/Shortcake] (也稱為 Shortcake)!
外掛標籤
開發者團隊
原文外掛簡介
A quick and easy shortcode to embed iframe’s that resize to the content of the remote site.
Auto iFrame shortcode is in the format of:
[auto-iframe link=xxx tag=xxx width=xxx height=xxx autosize=yes/no]
Where:
link = the url of the source for the iFrame. REQUIRED.
tag = a unique identifier in case you want more than one iFrame on a page. Default = auto-iframe.
width = width of the iFrame (100% by default). Can be % or px. Default = 100%.
height = the initial height of the iframe (100% by default). Can be % or px. Default = 100%.
autosize = enable the auto sizing of the iFrame based on the content. The initial height of the iFrame will be set to “height” and then resized. Default = true.
fudge = a fudge factor to apply when changing the height (integer number, no “px”). Default = 50.
border = enable the border on the iFrame. Default = 0.
scroll = enable the scroll bar on the iFrame. Default = no.
query = pass the parent’s page query string to the iFrame. Default = no.
Note: Auto re-sizing of the iFrame for cross domain sites does not work, this is a security protection provided by the browser and there is no way around it.
Now supports (Shortcode UI)[https://github.com/fusioneng/Shortcake] (aka Shortcake)!
