如何让我的表格显示在我的ContentPlaceHolder上方?

时间:2012-05-22 11:48:23

标签: asp.net css webforms

我正在尝试在单击超链接时显示的MasterPage中创建一个菜单。 YardimDokumaniMenuAHREF是显示菜单的超链接。如您所见,当我点击它时会调用javascript。但是,由于内容占位符,无法显示单元格的容量。请参阅screenshot

这是我的代码。有人可以帮我解决这个问题吗?

<a id="YardimDokumaniMenuAHREF" href="javascript:DisplayMenu('ctl00_YardimDokumaniMenuContent')" runat="server" title="">YARDIM DÖKÜMANI</a>
<%-- YardimDokumaniMenuAHREF triggers YardimDokumaniMenuContent to be displayed --%>

<div ID="YardimDokumaniMenuContent" runat="server" style="visibility:hidden; position:absolute; z-index:-99999">
<table border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td>
            <a href="/YardimDokumanlari/YeniSayfa?key=38fad920-196c-48d9-a2fa-3df052c0cb0c">hadi bakalııııım</a>
        </td>
    </tr>
    <tr>
        <td>
            <a href="/YardimDokumanlari/YeniSayfa?key=38fad920-196c-48d9-a2fa-3df052c0cb0c">hadi bakalııııım333</a>
        </td>
    </tr>
</table>
</div>
                    </li>
                    <li class=""><a href="~/Default.aspx" title="Ana Sayfa" runat="server" id="AnaSayfaLink">
                        Ana Sayfa</a> </li>
                    <li class=""><a href="~/Everyone/iletisim.aspx" runat="server" title="Bilgi almak istiyorum, şikayetim var, haklı müşteriyim.">
                        İLETİŞİM / YARDIM MASASI</a></li>
                    <li class="current_page_item" runat="server" id="OnlineIslemLink"><a id="A1" runat="server"
                        href="https://ode.a-kent.com/Yetki/Login.aspx">ONLINE İŞLEM</a> </li>
                    <li class="">
                        <asp:LinkButton ID="LogoutLinkButton" runat="server" CausesValidation="false" OnClick="LogoutLinkButton_Click">GÜVENLİ ÇIKIŞ</asp:LinkButton>
                    </li>
                </ul>
            </div>
            <!-- globalNav end -->
        </div>
        <!-- header end -->
        <div id="main">
            <div class="panel fetaured" style="left: 192px; top: 0px; width: 755px;">
                <div class="comments">
                    <a href="javascript:history.go(-1);"><b>GERİ</b></a>
                </div>
            </div>
        </div>
        <div>
            <asp:ContentPlaceHolder runat="server" ID="LeftPanelContentPlaceHolder">
            </asp:ContentPlaceHolder>

显示菜单功能:

<script type="text/javascript">
    function DisplayMenu(obj) {
        obj = document.getElementById(obj);
        obj.style.visibility = 'visible';
    }
</script>

1 个答案:

答案 0 :(得分:1)

从YardimDokumaniMenuContent div样式中删除z-index:-99999。如果这不起作用,请确保该div的z-index大于背景的z-index。