< a href =" ">不工作 [英] <a href=" "> not working
问题描述
以下超链接不起作用,但它在您点击新标签按钮中的打开时起作用。
< div class =span12 category-productsstyle =margin:0 auto;>
< div class =toolbar>
< div class =row big_with_descriptionstyle =position:relative;>
< a href =http://www.grewal.nl/reviveme/repair/mobile.html>
< div class =span5 product hover>
< / div>
< / a>
< / div>
< / div>
Firefox浏览器。活页面可以在此处看到。
如果禁用JavaScript,链接将起作用。在ajaxtoolbar.js中,您有以下代码:
$ $ $ $ $ $ $ $ $ $ $'''''。' (事件){
link = $ jq(this).attr('href');
if((link.search(mode =)!= - 1 || link !.search( DIR =)= - 1 || link.search( 价格=)= - 1 || link.search( p =)= - 1)及!及(toolbarsend = = false)){
event.preventDefault();
ajaxtoolbar.onSend(link,'get');
}
return false;
});
返回false;
阻止链接触发。
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>
I have tried using Chrome and Firefox. The live page can be seen here.
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;
});
The return false;
prevents the link from triggering.
这篇关于< a href =" ">不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!