1.用iframe标签引入html文件
<iframe src="head.html" width="100%" height="117.5px"></iframe>
2.用到jQuery的load()动态加载功能
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
参考博客——
https://blog.csdn.net/weixin_62495505/article/details/131745232
https://blog.csdn.net/weixin_62495505/article/details/131827746?csdn_share_tail=%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22%2C%22rId%22%3A%22131827746%22%2C%22source%22%3A%22weixin_62495505%22%7D