[wordpress插件] Auto iFrame自动iFrame

wordpress 插件 文章 2020-02-24 09:20 668 0 全屏看文

AI助手支持GPT4.0

评分
76
描述

A quick and easy shortcode to embed iframe’s that resize to the content of the remote site.

一种快速简便的代码,可嵌入调整大小以适应远程站点内容的iframe。

Auto iFrame shortcode is in the format of:

自动iFrame简码的格式为:

[auto-iframe link=xxx tag=xxx width=xxx height=xxx autosize=yeso]

  [自动iframe链接= xxx标签= xxx宽度= xxx高度= xxx自动尺寸=是/否]

Where:

位置:

    • link = the url of the source for the iFrame.

    • link = iFrame来源的网址。

      REQUIRED.

    • 需要。

    • tag = a unique identifier in case you want more than one iFrame on a page.

    • 标记=唯一标识符,以防页面上需要多个iFrame。

      Default = auto-iframe.

    • 默认=自动iframe。

    • width = width of the iFrame (100% by default).

    • width = iFrame的宽度(默认为100%)。

      Can be % or px.

      可以是%或px。

      Default = 100%.

    • 默认值= 100%。

    • height = the initial height of the iframe (100% by default).

    • height = iframe的初始高度(默认为100%)。

      Can be % or px.

      可以是%或px。

      Default = 100%.

    • 默认值= 100%。

    • autosize = enable the auto sizing of the iFrame based on the content.

    • autosize =启用基于内容的iFrame自动调整大小的功能。

      The initial height of the iFrame will be set to “height” and then resized.

      iFrame的初始高度将设置为“高度”,然后调整大小。

      Default = true.

    • 默认= true。

    • fudge = a fudge factor to apply when changing the height (integer number, no “px”).

    • 软糖=更改高度时要应用的软糖因子(整数,无“ px”)。

      Default = 50.

    • 默认值= 50。

    • border = enable the border on the iFrame.

    • border =在iFrame上启用边框。

      Default = 0.

    • 默认= 0。

    • scroll = enable the scroll bar on the iFrame.

    • scroll =启用iFrame上的滚动条。

      Default = no.

    • 默认=否。

    • query = pass the parent’s page query string to the iFrame.

    • query =将父级的页面查询字符串传递给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.

    注意:无法为跨域站点自动调整iFrame的大小,这是浏览器提供的安全保护,因此无法解决。

    Now supports (Shortcode UI)[https://github.com/fusioneng/Shortcake] (aka Shortcake)!

    现在支持(Shortcode UI)[https://github.com/fusioneng/Shortcake](又名Shortcake)!

安装步骤

    1. Extract the archive file into your plugins directory in the auto-iframe folder.
    2. 将存档文件提取到auto-iframe文件夹中的插件目录中。

    3. Activate the plugin in the Plugin options.
    4. 在“插件”选项中激活插件。

下载地址
https://downloads.wordpress.org/plugin/auto-iframe.1.6.zip
-EOF-

AI助手支持GPT4.0