gpt4 book ai didi

asp.net - 如何让我的表格显示在我的 ContentPlaceHolder 上方?

转载 作者:太空宇宙 更新时间:2023-11-04 15:54:43 24 4
gpt4 key购买 nike

我正在尝试在单击超链接时显示的 MasterPage 中创建一个菜单。 YardimDokumaniMenuAHREF 是显示菜单的超链接。如您所见,当我点击它时调用了一个 javascript。但是,由于 contentplaceholder,无法显示单元格的内容。请参阅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>

最佳答案

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

关于asp.net - 如何让我的表格显示在我的 ContentPlaceHolder 上方?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10701431/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com