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

Share an offline HTML page application example

零下一度
Release: 2017-05-12 13:56:16
Original
1732 people have browsed it

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
Copy after login

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>
Copy after login

【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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template