静态html引入公共头部和尾部的方法

常用三种方式

1,把html转为js,再通过<script type="text/javascript" src="header.js"></script>

2,试用iframe

<!-- 引入头部(只要一行代码就可以了) -->
<iframe src="header.html" scrolling="no" frameborder="0" height="100%" id="mainFrame" width="100%"></iframe>

3,

posted @ 2014-02-03 22:59  photoshop爱好者  阅读(640)  评论(0)    收藏  举报