不要使用框架,使用iframe应该可以:)
解决方案 »
- json 问题
- js页面里如何获取其他php页面中设置的cookie
- 用js在页面上控制鼠标移动范围
- js正则不允许的字串
- jquery怎样提取一个含.good的.bd集?
- js打印PDF文件
- 怎样用<input type="button" value="onck" onclick="doRef();">来实现<a href="http://www.csdn.net" target="myFrame">csdn</a>这样的效
- 在JSP中调用:windows.print() ; 怎么去掉windows自动加进去的东西?
- 请问在同一HTML页面中有两个表格,能否实现这两个表格的TD属性(边框、颜色等)定义为两种风格?如果使用TD{}来定义的话,则两个表格的TD
- 如何在js中点击一个按钮实现窗口最小化功能?
- 怎样用javascript打开保存文件的对话框?
- 小弟没学过JAVA,但我现在要把一段别人的东西加到我的页面里,我看着很简单,只把两个TD之间的东西考过来,可为什么不行呢.
下面是偶同事做的一个例子<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.cha {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
color: #CC3333;
text-decoration: none;
}
a.cha:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
color: #CC3333;
text-decoration: underline;
}
body {
margin-left: 0px;
margin-top: 0px;
}
.cha01 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #3300CC;
text-decoration: none;
line-height: 120%;
}
a.cha01:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #3300CC;
text-decoration: underline;
line-height: 120%;
}
-->
</style>
<base target="main">
</head><body>
<table width="100%" border="0" cellpadding="0">
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td width="200"> </td>
<td>
<div id="menu" style="position:absolute; visibility:hidden; top:40px; left:204px; width:160px; height:200px;">
<table cellspacing="1" bgcolor="#CCCCCC" width="100%" onmouseover="document.getElementById('menu').style.visibility='visible'" onmouseout="document.getElementById('menu').style.visibility='hidden'">
<tr><td height="25" align="center" bgcolor="#ffffff"><a href="#" class="cha01">三个和尚没水吃</a></td></tr>
<tr><td height="25" align="center" bgcolor="#ffffff"><a href="#" class="cha01">三个和尚没水吃</a></td></tr>
<tr><td height="25" align="center" bgcolor="#ffffff"><a href="#" class="cha01">三个和尚没水吃</a></td></tr>
<tr><td height="25" align="center" bgcolor="#ffffff"><a href="#" class="cha01">三个和尚没水吃</a></td></tr>
<tr><td height="25" align="center" bgcolor="#ffffff"><a href="#" class="cha01">三个和尚没水吃</a></td></tr>
</table>
<iframe src="javascript:false" style="position:absolute; top:0px; left:0px; width:160px; height:200px; z-index:-1; filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';"></iframe>
</div><a href="#" class="cha" onmouseover="document.getElementById('menu').style.visibility='visible'" onmouseout="document.getElementById('menu').style.visibility='hidden'">显示菜单</a><form>
<select class="cha01"><option>这是一个测试用的form</option>
<option>江山如此美丽</option>
<option>小鸟儿飞翔吧</option>
</select>
</form></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<iframe style="position:absolute; top:53; left:153; width:287; height:237; z-index:-1; filter='progidDXImageTransform.Microsoft.Alpha(style0,opacity0)';"></iframe>
</div>
</body>
</html>
iframe是绝对可以的 。 。 我自己做的时候就是用的iframe ...
除了不能覆盖select外,其他的任何元素都是能够覆盖的
ifrmae也能做到与frame一样的效果
如果把菜单放在iframe里,用一个iframe盖住另一个iframe,当然可以实现盖住任何元素 。 。 。