html 中include另外一个页面

版权声明:本文为博主原创文章,未经博主允许不得转载。
两个页面 technologies.html head.html 在 technologies.html 中使用 include
- <!-- #include file="head.html" -->
使用chrome 打开 technolliges.html,页面没有任何显示。原因 html不支持 include,解决方案参考:csdn: html中include方法 。参考方法将.html改成 .aspx,在technologies.aspx中打开可以显示 head.html中的内容。有一个未解决问题 windows 2000 IIS 中的 default.aspx 页面不支持默认主页面,支持default.html,暂时无法使用该方案,但可以尝试另外一个iframe方案,iframe方案支持在html页面中包含其它页面。
- <iframe frameborder=0 border=0 width=300 height=300 src="head.htm" mce_src="head.htm"></iframe>