我需要在一个 iframe 中显示 2 个文件。目前,我有 2 个 iframe,这对我的网站来说不是一个好的解决方案。我宁愿有 1 个 iframe 来显示这两个文件。
我在 magento 属性中使用它,所以我认为如果不进行一些开发,js 将无法工作。有什么建议吗?
<iframe src="/path/to/file-001.html" frameborder="0" scrolling="yes" seamless="seamless" style="display:block; width:100%; min-height:325px;"></iframe>
<iframe src="/path/to/file-002.html" frameborder="0" scrolling="yes" seamless="seamless" style="display:block; width:100%; min-height:325px;"></iframe>
最佳答案
我最终使用 php 将文件 2 包含在文件 1 的底部,然后仅在 iframe 中使用文件 1。
关于html - 1 个 Iframe,2 个来源 - 为 1 个 Iframe 合并文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31727287/