Lightbox div在linkbutton的click事件上关闭

时间:2014-03-14 08:38:47

标签: asp.net lightbox

我使用下面的代码在灯箱中显示div:

<div id="light" class="white_content"><br>
<asp:Image ID="imgLightBox" alt="" border="0" align="" runat="server"></asp:Image><br /><br>
<div class="sliderRightSideArrow"><br>
<asp:LinkButton ID="lbLightNext" CssClass="nextEnable" runat="server" ToolTip="Next" OnClick="lbLightNext_Click" ></asp:LinkButton>
<asp:LinkButton ID="lbLightPrevious" CssClass="previousDisable" value="" runat="server" ToolTip="Previous" OnClick="lbLightPrevious_Click" ></asp:LinkButton>
</div>
<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">Close</a>

当我点击任何链接按钮时,我的灯箱div已关闭,但我想点击<a> "Close" </a>

关闭它

0 个答案:

没有答案