使用服务器端包含在另一个HTML文件中包含一个HTML文件 [英] Include one HTML file in another HTML file using server side include

查看:55
本文介绍了使用服务器端包含在另一个HTML文件中包含一个HTML文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将HTML文件包含在另一个HTML文件中。有没有简单的方法可以做到这一点?



谢谢 我想你在寻找服务器端包括: http://en.wikipedia.org/wiki/Server_Side_Includes 。总结(并简单化)将页面的扩展名从.html页面改为.shtml,那么您应该可以使用类似于以下内容的include语句:

<! - #include virtual =somefile.html - >


How can I include an HTML file in another HTML file. Is there any simple way to do that?

Thanks

解决方案

I think you're looking for server side includes: http://en.wikipedia.org/wiki/Server_Side_Includes. To summarize (and oversimplify) change the extension of your page from .html page to .shtml, then you should be able to use an include statement similar to:

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

这篇关于使用服务器端包含在另一个HTML文件中包含一个HTML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆