Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 设置全局页眉和页脚方法_Jquery_Html - Fatal编程技术网

Jquery 设置全局页眉和页脚方法

Jquery 设置全局页眉和页脚方法,jquery,html,Jquery,Html,我的网站是html5。 如何设置全局页眉和页脚 标题介于 页脚在 我创建了两个文件,一个是header.html,另一个是footer.html 设置此项的bedt方法是什么?使用一个文件 <header> <h1>Most important heading here</h1> <h3>Less important heading here</h3> <p>Some additional inf

我的网站是html5。 如何设置全局页眉和页脚

标题介于
页脚在

我创建了两个文件,一个是header.html,另一个是footer.html

设置此项的bedt方法是什么?

使用一个文件

  <header>
    <h1>Most important heading here</h1>
    <h3>Less important heading here</h3>
    <p>Some additional information here</p>
  </header>

<footer>
  <p>Posted by: Hege Refsnes</p>
  <p>Contact information: <a href="mailto:someone@example.com">
  someone@example.com</a>.</p>
</footer>

最重要的标题在这里
不太重要的标题
这里有一些附加信息

发帖人:Hege Refsnes

联系信息:


最佳方式?将所有内容放在一个文件中,但这可能不是您要查找的内容。你能提供更多的信息吗?