<分区>
如何将外部 html 文件插入到我的文件中?
例如:
<div id="header">
Here show the external HTML code in the file, for example: name.html
</div>
非常感谢!
标签 html
<分区>
如何将外部 html 文件插入到我的文件中?
例如:
<div id="header">
Here show the external HTML code in the file, for example: name.html
</div>
非常感谢!
最佳答案
另一种方法是使用对象标签。这适用于 Chrome、IE、Firefox、Safari 和 Opera。
<object data="html/stuff_to_include.html">
Your browser doesn’t support the object tag.
</object>
关于html - 将外部 HTML 文件包含到另一个 HTML 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17148357/