在<body>...</body>之间加入下列代码:
如果在table中有一行是iframe,且需要隐藏的时候,需要放到table的最上面一行,否则会出现隐藏不了,或者排版变乱,js错误。
原貼:
http://derpvail.iteye.com/blog/261059
<div id="bodyframe" style="VISIBILITY: hidden">
<IFRAME frameBorder=1 id=heads src="framepage.htm" 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="#ffffff">显示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="#ffffff">隐藏iFrame</font>
</div>
如果在table中有一行是iframe,且需要隐藏的时候,需要放到table的最上面一行,否则会出现隐藏不了,或者排版变乱,js错误。
原貼:
http://derpvail.iteye.com/blog/261059