我使用了脚本
<!--#include virtual="dontate.html" -->
将一个 .html 文件包含到另一个 .html 文件中,但由于某种原因没有显示。
有什么理由吗?
我将使用 WAMP 和 LAMP。
谢谢 吉恩
最佳答案
这是使用server-side includes 。您需要在您的服务器上进行设置。尽管“注释”语法具有误导性,但它实际上与 HTML 无关。
关于javascript - 将 .html 包含在 .html 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3146786/