iFrame 不在桌面上调整大小
iFrame not resizing in desktop
希望有人能帮助我使 iFrame Resizer 插件 (https://github.com/davidjbradshaw/iframe-resizer) 正常工作。
- 我的测试页是:http://www.chapmancaravans.com.au/new-used/test.php
- iFrame 内容添加了 iframeResizer.contentWindow.min.js 脚本
- 我使用的是典型设置
当我在设备 (mobile/tablet) 上查看测试页面时,效果很好。但是当我在桌面上查看它并缩小浏览器时 window - iFrame 被切断并且根本没有调整大小。
有人对我在这里可能遗漏的内容有任何建议吗?
非常感谢。
检查您的控制台是否有错误
无法在 'DOMWindow' 上执行 'postMessage': 提供的目标原点 ('http://chapmansofnowra.caravancampingsales.com.au') does not match the recipient window's origin ('http://www.chapmancaravans.com.au').
刚刚查看了您的页面,iframed 内容没有加载 iframe.contentwindow.js 文件。
希望有人能帮助我使 iFrame Resizer 插件 (https://github.com/davidjbradshaw/iframe-resizer) 正常工作。
- 我的测试页是:http://www.chapmancaravans.com.au/new-used/test.php
- iFrame 内容添加了 iframeResizer.contentWindow.min.js 脚本
- 我使用的是典型设置
当我在设备 (mobile/tablet) 上查看测试页面时,效果很好。但是当我在桌面上查看它并缩小浏览器时 window - iFrame 被切断并且根本没有调整大小。
有人对我在这里可能遗漏的内容有任何建议吗?
非常感谢。
检查您的控制台是否有错误
无法在 'DOMWindow' 上执行 'postMessage': 提供的目标原点 ('http://chapmansofnowra.caravancampingsales.com.au') does not match the recipient window's origin ('http://www.chapmancaravans.com.au').
刚刚查看了您的页面,iframed 内容没有加载 iframe.contentwindow.js 文件。