我正在嘗試使用iFrame Resizer根據其內容(可以更改)在同一域上調整 iFrame 的大小?,F場示例: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>無法弄清楚為什么它不起作用。
iFrameResize 未定義 - 通過 CDN & 在 JS 文件中加載
HUH函數
2021-08-20 09:54:08