如何将外部 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>
更多信息请访问http://www.w3schools.com/tags/tag_object.asp
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)