Jquery 如何在定义了类和rel的情况下模拟点击a href?
在我提出这个问题之前,我尝试了我在这里看到的各种例子。在尝试了几个小时的解决方案后,我退出了。可能有人有更多的javascript,html知识可以帮助我。我真的希望如此 这是我的代码:Jquery 如何在定义了类和rel的情况下模拟点击a href?,jquery,html,modal-dialog,Jquery,Html,Modal Dialog,在我提出这个问题之前,我尝试了我在这里看到的各种例子。在尝试了几个小时的解决方案后,我退出了。可能有人有更多的javascript,html知识可以帮助我。我真的希望如此 这是我的代码: <table class="tab_login"> <tr> <td class="azul_escuro" align="right">You need to accept this document to proceed</td> </tr> &l
<table class="tab_login">
<tr>
<td class="azul_escuro" align="right">You need to accept this document to proceed</td>
</tr>
<tr>
<td align="right"><a href="termos_uso.php" class="modal" rel="modal"><img src="images/btn_enter.jpg" border="none" /></a></td>
</tr>
</table>
我能做什么
提前谢谢 如果用户不单击,就无法打开弹出窗口。此行为已被删除以杀死弹出窗口添加 所以window.open()只在真正的鼠标单击事件发生时才起作用 当您尝试这样做时,现代浏览器将显示一条警告,提示网站试图打开一个新窗口
您可能可以使用div覆盖。我只希望出现一个模式窗口。我尝试了一个代码来模拟点击事件,它成功了,因为它打开了页面,但没有作为一个具有掩码和全部的模式工作。我认为引用“类”是一个问题。好。。。
/* MODAL */
.load { position: absolute; top: 50%; left: 50%; width: 88px; height: 78px; margin: -39px 0 0 -44px; z-index: 99999;}
.bg_modal { position: absolute; top: 0; left: 0; z-index: 99998; }
.view_modal { position: absolute; left: 50%; top: 50%; text-align: left; z-index: 99998; }
/*modal { visibility: hidden; cursor:pointer; }*/
.box_modal{width:429px; height:auto;}