日期:2014-05-16  浏览次数:20462 次

怎么让动态下拉框显示在最上层
js
function   closeBaojd(m)
{
if(m==1)
{
document.all.baojd.style.top= "45px ";
document.all.baojd.style.left= "138px ";
document.all.baojd.target= "main ";
document.all.baojd.style.display= "block ";
}
else   if(m==2)
{
document.all.baojd.style.display= "none ";
}
}

html

<div   name= "baojd "   id= "baojd "   style= "   border:2px   solid   #000066;font-size:12px;   display:none;   z-index:10000;   background-color:#FFFFFF;text-align:center;   position:absolute;width:70px;height:40px; "   onMouseOver= "closeBaojd(1); "   onMouseOut= "closeBaojd(2); "   >
<div   style= "   border-bottom:1px   solid   #000000;height:20px;   padding-top:5px; "> <a   href= "Admin_Jianji_Add.htm "   target= "main "> 生成报价单 </a> </div>
<div   style= "height:20px;   padding-top:5px; "> <a   href= "Admin_Jianji.htm "   target= "main "> 报价单管理 </a> </div>
</div>

这个动态的下拉框被框价档住了,怎么让他能显示在web的最上层而不被档住呢

------解决方案--------------------
要加入一行就oPopBody.innerHTML += "abc ";

设为超链接当然就是:
oPopBody.innerHTML += " <a href=\ "#\ " target=\ "main\ "> abc </a> ";