如何在asp.net中包含一个html文件到另一个 [英] How to include one html file to another in asp.net
问题描述
我正在使用纯html,handler和jquery开发新项目。所以,我创建了一个名为Header.html的共享文件,它将在每个文件中重复使用。
如何包含标题.html文件到新文件假设在asp.net中的test.html?
提前致谢
使用 iframe [ ^ ]。
示例 - HTML iframes [ ^ ]
< blockquote>你可以使用如下的jQuery Load函数。
< div id = new-header >
< script >
( #new-header)。load( header.html中跨度>);
< / script >
< / div >
并检查以下替代方法
使用HTML和JavaScript的母版页 [ ^ ]
如何在HTML中为HTML制作MasterPage网站? [ ^ ]
纯HTML中的母版页技术 [ ^ ]
I am Developing new project using pure html , handler and jquery.So, I have created a shared file named Header.html which is to be used repeatedly in each file.
How to include Header.html file to new file suppose test.html in asp.net ?
Thanks in advance
Use iframes[^].
Example - HTML Iframes[^]
you can use jQuery Load function like below.
<div id="new-header"> <script>
("#new-header").load("header.html"); </script> </div>
and check below alternative approaches as well
Master Pages using HTML and JavaScript[^]
How to make MasterPage in HTML for an HTML website?[^]
Master Pages Technique in Pure html[^]
这篇关于如何在asp.net中包含一个html文件到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!