HTML5页面链接已禁用

时间:2013-08-21 20:58:03

标签: html html5

以下页面上的“查看此”链接不起作用,对于我的生活,我无法理解为什么?

http://www.johnnyno.co.uk/index_old.html

网站上链接的HTML是

<a href="http://www.stylistpick.com/shoes/">view this</a>

但点击它不会做任何事情 - 只需搜索“查看此内容”并尝试点击它

谢谢!

1 个答案:

答案 0 :(得分:3)

那是因为您使用以下代码处理容器中的所有点击:

$('.thumbnails-portfolio li').on('click touchend', function(e){
    e.preventDefault();
    if ($(this).find('.page').length > 0){
        AnimateLightBox($(this));
    }
});

您应该添加一个选择器来过滤缩略图上的点击次数:

$('.thumbnails-portfolio li').on('click touchend', '.thumbnail', function(e){...