我从 freefrontedit 下载了一个扩展,并将其上传到我的服务器到目录/accordeon。 当我将浏览器指向 http://mysite/accordeon/index.html 时它运作良好。 但是我怎样才能将 index.html 加载到文章内容中呢? 我正在使用 joomla 模板。
我尝试使用 <iframe src="http://mysite/accordeon/index.html" width="100%" height="100%"></iframe>
但是高度不一样。
有没有其他方法可以将 accordeon/index.html 加载到文章中?
最佳答案
我想知道如何在没有 iframe 的情况下在像 joomla 和 wordpress 这样的 cms 中使用自定义扩展你自己的内容,因为 iframe 高度永远不会与源相同。在文章内容中粘贴 index.html 代码只有在它们没有 index.HAML 文件时才有效,因为文章和自定义 html 模块都无法理解 HAML 代码,只能将其显示为纯文本
关于javascript - 如何将 html 文件加载到文章内容中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48170795/