jQuery实现鼠标的移入移出
作者:互联网
.classre-box td.apply-class-hover .ye-tit {
background: #de763a !important;
}
.classre-box td.apply-class-hover .classbutton {
border: 3px solid #de763a;
color: #de763a;
}
// 报名班型鼠标移入移出事件
$('.classre-box td').hover(
function () {
// 鼠标移入时添加apply-class-hoverr类
$(this).addClass('apply-class-hover')
},
function () {
// 鼠标移入时移出apply-class-hoverr类
$(this).removeClass('apply-class-hover')
}
)
标签:jQuery,hover,鼠标,移出,classre,移入,apply,class 来源: https://blog.csdn.net/weixin_43882815/article/details/118461559