Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 1个Iframe,2个源-合并1个Iframe的文件_Html_Magento_Iframe - Fatal编程技术网

Html 1个Iframe,2个源-合并1个Iframe的文件

Html 1个Iframe,2个源-合并1个Iframe的文件,html,magento,iframe,Html,Magento,Iframe,我需要在一个iframe中显示2个文件。目前,我有2个iFrame,这对我的站点来说不是一个好的解决方案。我希望有一个iframe来显示这两个文件 我在magento属性中使用了它,所以我认为如果不进行一些开发,js将无法工作。有什么建议吗 <iframe src="/path/to/file-001.html" frameborder="0" scrolling="yes" seamless="seamless" style="display:block; width:100%; mi

我需要在一个iframe中显示2个文件。目前,我有2个iFrame,这对我的站点来说不是一个好的解决方案。我希望有一个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。

我对这方面的替代解决方案感兴趣。。。您需要更改多少个文件。如果我有几百个文件,这将不是一个可行的解决方案。非常感谢。