在HTML文件中包含另一个HTML文件

大憨熊 提交于 2020-07-27 08:56:17

问题:

I have 2 HTML files, suppose a.html and b.html . 我有2个HTML文件,假设a.htmlb.html In a.html I want to include b.html . a.html我想包含b.html

In JSF I can do it like that: 在JSF中,我可以这样做:

<ui:include src="b.xhtml" />

It means that inside a.xhtml file, I can include b.xhtml . 这意味着在a.xhtml文件中,我可以包含b.xhtml

How can we do it in *.html file? 我们如何在*.html文件中执行此操作?


解决方案:

参考一: https://stackoom.com/question/biPX/在HTML文件中包含另一个HTML文件
参考二: https://oldbug.net/q/biPX/Include-another-HTML-file-in-a-HTML-file
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!