ie下禁用a标签

 $("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");
    });
posted @ 2017-03-02 16:04  holdonBestrong  阅读(416)  评论(0编辑  收藏  举报