五楼东风

导航

Iframe的使用等

1. iframe特点
它不同于Frame标记最大的特征即这个标记所引用的HTML文件不是与另外的HTML文件相互独立显示,而是可以直接嵌入在一个HTML文件中,与这
个HTML文件内容相互融合,成为一个整体,另外,还可以多次在一个页面内显示同一内容,而不必重复写内容.
2.Iframe的隐藏和显示
<html>
<body>
<div id="bodyframe" style="VISIBILITY: hidden">
<IFRAME frameBorder=1 id=heads src="http:\\www.wxhx.com" style="HEIGHT: 200px; LEFT: 220px; POSITION: absolute; TOP: 200px; WIDTH: 500px">
</IFRAME>
</div>
<div onclick="document.all.bodyframe.style.visibility='visible'" style="background-color: red; cursor: hand; height: 22; left: 300; position: absolute; top: 137; width: 74; z-index: 1">
<font color="#ffeeff">show iFrame</font></p>
</div>
<div onclick="document.all.bodyframe.style.visibility='hidden'" style="background-color: red; cursor: hand; height: 22; left: 400; position: absolute; top: 137; width: 74; z-index: 1">
<font color="#ffccff">hidden iFrame</font>
</div>
</body>
</html>
3.一个介绍<div>和css很好的网站:   http://www.onestab.net/seybold/index.html

posted on 2006-07-11 19:24  abse  阅读(358)  评论(0编辑  收藏  举报