发布于 2017-07-24 18:10:14
你的目标只是图标:
$("li.dropdown > a > i").hover(您需要以<li>为目标,然后将该类应用于其子<i>。
$("li.dropdown").hover(
function () {
$(this).find("i").addClass("gxcpl-fa-rotate-45");
},
function () {
$(this).find("i").removeClass("gxcpl-fa-rotate-45");
}
);看看小提琴这里
https://stackoverflow.com/questions/45286983
复制相似问题