Home  >  Article  >  Web Front-end  >  Share an offline HTML page application example

Share an offline HTML page application example

零下一度
零下一度Original
2017-05-12 13:56:161691browse

I want to make an offline HTML page application with only one main page and several other partial pages.
I want to make the main page a master page like the server side, and load other pages into the main page.

----- 
        index.htm 
         header.htm 
         work.htm

In the case of offline, is there any way to load the header.htm page into the specified dom through JS script or other methods in index.htm?

<html> 
<body> 
<div id="header"></div> 
<script> 
$(&#39;#header&#39;).load(&#39;./header.htm&#39;) // 这个方法不行,因为这是请求远程的页面.而不是请求本地的 
</script> 
</body> 
</html>

【Related recommendations】

1. Free html online video tutorial

2. html development manual

3. php.cn original html5 video tutorial

The above is the detailed content of Share an offline HTML page application example. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn