【发布时间】:2014-03-16 20:08:13
【问题描述】:
我已使用以下代码将 Html 页面包含到 Dreamweaver 中的另一个 html 页面中
<script type="text/JavaScript">
$(function(){
$("#header").load("header.html"); });
</script>
但此代码不适用于 Google chrome 浏览器。 请帮助我如何使网页与 Google chrome 浏览器兼容。
【问题讨论】:
-
如何将 HTML 页面包含到另一个 HTML 页面中?
-
Chrome 错误控制台说什么?
-
这看起来像 JQuery;你在这个sn-p之前包括那个吗?
-
我创建了两个html页面a.html和b.html。我使用上面的代码将 b.html 包含到 a.html 中。此代码在 IE 和 Firefox 浏览器中运行良好,但在 Google chrome 中它显示了我在我的 html 代码中包含该特定页面的注释(//标题模板)。
-
#Chris- 我没有使用任何 sn-p 我只是使用上面的代码将我的 html 文件包含到我的主 html 文件中。
标签: html google-chrome cross-browser