如何控制Div,使其显示在页面其他控件的前端

来源:百度知道 编辑:UC知道 时间:2024/06/13 21:09:16
div 中放了一个Listbox
一旦这个div显示的时候,就把下面的控件给挤开了。
想实现这样的功能:先是的时候盖住其他控件

<style type="text/css">
<!--
.pos {
position: relative;
}
-->
</style>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="290" valign="top" class="pos"><div id=''layer1'' style=''position:absolute; left:100px; top:100px; width:170px; height:84px; z-index:1;visibility:hidden''></div>
</td>
</tr>
</table>

试试 不知道有用没