shtml的include

有的网站会出现100多个,甚至更多个页面拥有完全相同的导航条,列表,等充分的信息。这种情况下我们可以使用shtml的include功能来导入这些相同的部分:

index.shtml:

<HTML>
</HEAD>

<BODY>
  <!--#include file="block.html" -->
</BODY>
</HTML>

 

block.html:

<div style="width:200px;height:200px;background-color:#f00;" >
</div>

 

或者直接使用html的Iframe,当然,这样搜索引擎的支持性就不是很好了。

<iframe   src="xxx.html"   id="iframe1"   onload="this.height=iframe1.document.body.scrollHeight+20;this.width=iframe1.document.body.scrollWidth+20"></iframe>

posted on 2010-05-05 15:47  冰危节奏  阅读(706)  评论(2)    收藏  举报

导航