holdonBestrong
 $("a").css("cursor", "default").removeAttr(\'href\').hover(function(){
        $(this).css("text-decoration","none");
    });
.css("cursor", "default")是让a标签鼠标样式变成默认的箭头,不显示小手
.removeAttr(\'href\')删除a的href,这样点击就不会跳转
.hover(function(){这个是改变滑过的样式,既然禁用了标签,那么按理说鼠标滑过它是不应该有任何效果的。
        $(this).css("text-decoration","none");
    });

分类:

技术点:

相关文章: