我正在尝试使用iFrame Resizer根据其内容(可以更改)在同一域上调整 iFrame 的大小。现场示例:https : //bronzecc.co.uk/sunday-2nd-xi/我收到一个Uncaught ReferenceError: iFrameResize is not defined错误,但我检查了 iFrame,它们都通过 CDN 加载了正确的 JS,我也在该页面本身加载了正确的 JS。为了初始化我正在使用的调整器var iframes = iFrameResize({log: true}, 'iframe');MCE:https : //gist.github.com/shivampaw/7b1dba5326706673a782d115358eca2awindow.html<html><head> <meta charset="UTF-8"> <title>Window</title></head><body> <iframe src="iframe.html" style="width: 100%;" frameborder="0"></iframe> <script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.1.1/iframeResizer.contentWindow.min.js"></script> <script> iframes = iFrameResize({}, 'iframe'); </script></body></html>无法弄清楚为什么它不起作用。
添加回答
举报
0/150
提交
取消