博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

解决dropdownlist覆盖div问题

Posted on 2007-08-22 10:44  小飞龙(Jack)  阅读(1344)  评论(0编辑  收藏  举报

只要在div前加上
<iframe id="aaaa" style="position: absolute; z-index: 9; width: expression(this.nextSibling.offsetWidth);
    height: expression(this.nextSibling.offsetHeight); top: expression(this.nextSibling.offsetTop);
    left: expression(this.nextSibling.offsetLeft);" frameborder="0"></iframe>


就能解决此问题

例如:
<iframe id="aaaa" style="position: absolute; z-index: 9; width: expression(this.nextSibling.offsetWidth);
    height: expression(this.nextSibling.offsetHeight); top: expression(this.nextSibling.offsetTop);
    left: expression(this.nextSibling.offsetLeft);" frameborder="0"></iframe>


    <div id="divtabEdit" runat="server" class="ap_div_transparence" ondrag="b(this);" ondragstart="a(this);">
        <table width=500 cellpadding=0 cellspacing=0 border=0>
            <tr>
                <td>
                    公寓号:</td>
                <td><asp:TextBox ID=txtFlat runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    公寓地址:</td>
                <td><asp:TextBox ID=txtFlatAddress runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    公寓电话:</td>
                <td><asp:TextBox ID=txtFlatPhoto runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>
                    楼层数:</td>
                <td><asp:TextBox ID=txtFloorCount runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="2" align=center>
                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Admin/Image/Btn_qd.gif" />
                    <img src="Admin/Image/Btn_qx.gif" onclick="Hidediv()" />
                </td>
            </tr>
        </table>
    </div>