响应式嵌入 iframe Pym.js

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-05 18:43:31

软件介绍

Pym.js 可以让你在嵌入 iframe 的时候可自动的对 iframe 的大小进行调整以适应父一层容器,并且可以避免跨域问题。

支持浏览器:

  • Internet Explorer 9, 10 (Windows 7), 11 (Windows 8)

  • Chrome 32 (Mac 10.9)

  • Firefox 26 (Mac 10.9)

  • Safari 7 (Mac 10.9)

  • iOS 7 Safari

  • iOS 7 Chrome

  • Android 4.4 Chrome

示例代码:

<div id="example-1"></div>
<div id="example-2"></div>
<script type="text/javascript" src="pym.js"></script>
<script>
    var pymParent = new pym.Parent('example-1', 'child-1.html', {});
    var second = new pym.Parent('example-2', 'child-2.html', {});
</script>

本文地址:https://codercto.com/soft/d/22735.html

Learning PHP, MySQL, JavaScript, and CSS

Learning PHP, MySQL, JavaScript, and CSS

Robin Nixon / O'Reilly Media / 2012-9-3 / USD 39.99

If you're familiar with HTML, you can quickly learn how to build interactive, data-driven websites with the powerful combination of PHP, MySQL, and JavaScript - the top technologies for creating moder......一起来看看 《Learning PHP, MySQL, JavaScript, and CSS》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具