& lt; a href =& quot;& quot;& gt;不工作 [英] <a href=" "> not working
本文介绍了& lt; a href =& quot;& quot;& gt;不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下超链接不起作用,尽管当您单击在新标签页中打开"按钮时,该超链接有效.
The following hyperlink does not work, though it works when you click open in new tab button.
<div class="span12 category-products" style="margin: 0 auto;">
<div class="toolbar">
<div class="row big_with_description" style="position:relative;">
<a href="http://www.grewal.nl/reviveme/repair/mobile.html">
<div class="span5 product hover">
<img src="http://www.grewal.nl/reviveme/media/catalog/category/mobile2.jpg" class="category-thumbnail product-retina" width="499" height="268" alt="Mobile">
</div>
</a>
</div>
</div>
我尝试使用Chrome和Firefox.可以在此处看到实时页面.
I have tried using Chrome and Firefox. The live page can be seen here.
推荐答案
如果禁用JavaScript,则该链接有效.在ajaxtoolbar.js中,您具有以下代码:
If you disable JavaScript the link works. In ajaxtoolbar.js you have the following code:
$jq('a','.toolbar').click(function(event) {
link = $jq(this).attr('href');
if((link.search("mode=")!=-1||link.search("dir=")!=-1||link.search("price=")!=-1||link.search("p=")!=-1)&&(toolbarsend==false)){
event.preventDefault();
ajaxtoolbar.onSend(link,'get');
}
return false;
});
返回false;
阻止链接触发.
这篇关于& lt; a href =& quot;& quot;& gt;不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文