html - 1 个 Iframe,2 个来源 - 为 1 个 Iframe 合并文件

标签 html magento iframe

我需要在一个 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/

相关文章:

javascript - 从无序列表构建 json 字符串

wordpress - 什么是一个不需要数年时间就能掌握的全面电子商务平台?

mysql - 第三个嵌套的 Mysql Select 查询导致巨大的性能问题

php - 电子商务系统微服务架构中的 session

单击链接时javascript函数不起作用

html - 在打印 CSS 的每一页周围画一个边框?

php - JSP加载外部php不使用iFrames

html - 具有流动宽度和高度的列

css - 加载 iframe 时页脚消失

javascript - 如何将消息发布到 iFrame 中?