javascript - 将 .html 包含在 .html 中

标签 javascript html lamp wamp server-side-includes

我使用了脚本

 <!--#include virtual="dontate.html" -->

将一个 .html 文件包含到另一个 .html 文件中,但由于某种原因没有显示。

有什么理由吗?

我将使用 WAMP 和 LAMP。

谢谢 吉恩

最佳答案

这是使用server-side includes 。您需要在您的服务器上进行设置。尽管“注释”语法具有误导性,但它实际上与 HTML 无关。

关于javascript - 将 .html 包含在 .html 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3146786/

相关文章:

javascript - 在 Angularjs 的响应中获取 Promise 数据

javascript - 如何在没有 iFrame 的情况下加载 Monocle Web 电子书/ePub 阅读器?

php - 学习 PHP 的最佳堆栈是什么?

mysql - 仅在系统启动时出现 MAMP 1045 错误

javascript - Materialise CSS 和 Ruby on Rails 中的选项卡

javascript - Console.log 使用 box2d 记录对象速度

jquery - 使用 jQuery 更改文本字段焦点顺序

html - 从 codepen.io 修改时间线

javascript - 正则表达式替换指令中的 html 标签

MYSQL 只接受 root 帐户