如何让DIV盖住下拉菜单? 设置DIV盖住全屏以后~ 下拉菜单照常点~- - 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html> <head> <script> function DivSetVisible(state) { var DivRef = document.getElementById('PopupDiv'); var IfrRef = document.getElementById('DivShim'); if(state) { DivRef.style.display = "block"; IfrRef.style.width = DivRef.offsetWidth; IfrRef.style.height = DivRef.offsetHeight; IfrRef.style.top = DivRef.style.top; IfrRef.style.left = DivRef.style.left; IfrRef.style.zIndex = DivRef.style.zIndex - 1; IfrRef.style.display = "block"; } else { DivRef.style.display = "none"; IfrRef.style.display = "none"; } } </script> </head> <body background="http://www.orkut.com/img/i_blau2.gif"> <form> <select> <option>A Select Box is Born ....</option> </select> </form> <div id="PopupDiv" style="position:absolute;font:italic normal bolder 12pt Arial; top:25px; left:50px; padding:4px; display:none; color:#ffff00; z-index:100"> .... and a DIV can cover it up<br>through the help of an IFRAME. </div> <iframe id="DivShim" src="javascript:false;" scrolling="no" frameborder="0" style="position:absolute; top:0px; left:0px; display:none;filter=progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);"> </iframe> <br> <br> <a href="#" onclick="DivSetVisible(true)">Click to show DIV.</a> <br> <br> <a href="#" onclick="DivSetVisible(false)">Click to hide DIV.</a> </body> </html> 那就隐藏下拉菜单。display none iframe可以要是不用,就得用js动态隐藏下拉菜单要不用ie7看就可以 这个百度一下肯定有答案,我以前从百度上找到的。http://hi.baidu.com/andyy123/blog/item/76abf562a74ff3dce7113a80.html看看 <siteMap> 元素的下一级只需要一个 <siteMapNode> 元素 在一个网页上动态显示时间,这样写为什么不对啊? 如何实现客户端的文件上传??急用!!!!!!!!!!! 字符解码 各位高手请问asp.net能否连接My sql数据库?如何连接 ■■■我的第一个用例图,高手指点一下,谢谢 求 .Text Blog 0.95(宝玉汉化版) 等待ing..... 高手啊,你在那里!!! 高手请教 未包含带有 ParameterName“@Original_SaleId”的 SqlParameter????? 关于数据库的更新。。。 请问股票软件图表用的什么控件显示的?
<head>
<script>
function DivSetVisible(state)
{
var DivRef = document.getElementById('PopupDiv');
var IfrRef = document.getElementById('DivShim');
if(state)
{
DivRef.style.display = "block";
IfrRef.style.width = DivRef.offsetWidth;
IfrRef.style.height = DivRef.offsetHeight;
IfrRef.style.top = DivRef.style.top;
IfrRef.style.left = DivRef.style.left;
IfrRef.style.zIndex = DivRef.style.zIndex - 1;
IfrRef.style.display = "block";
}
else
{
DivRef.style.display = "none";
IfrRef.style.display = "none";
}
}
</script>
</head>
<body background="http://www.orkut.com/img/i_blau2.gif">
<form>
<select>
<option>A Select Box is Born ....</option>
</select>
</form>
<div
id="PopupDiv"
style="position:absolute;font:italic normal bolder 12pt Arial; top:25px; left:50px; padding:4px; display:none; color:#ffff00; z-index:100">
.... and a DIV can cover it up<br>through the help of an IFRAME.
</div>
<iframe
id="DivShim"
src="javascript:false;"
scrolling="no"
frameborder="0"
style="position:absolute; top:0px; left:0px; display:none;filter=progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);">
</iframe>
<br>
<br>
<a href="#" onclick="DivSetVisible(true)">Click to show DIV.</a>
<br>
<br>
<a href="#" onclick="DivSetVisible(false)">Click to hide DIV.</a>
</body>
</html>
display none
要是不用,就得用js动态隐藏下拉菜单
要不用ie7看就可以
http://hi.baidu.com/andyy123/blog/item/76abf562a74ff3dce7113a80.html看看