[英]jQuery: If button is “hover”, change style in NEXT button
如果主按鈕懸停了,我在下一個按鈕中遇到了巫婆更改樣式border-left-color的問題,並且如果主按鈕是“ focus”,我需要相同的功能“ focus” =>。
感謝幫助
$("button").hover(
function () {
$(this).nex("button").css("border-left-color", "#6e6e6e");
},
function () {
$(this).nex("button").css("border-left-color", "#bdbdbd");
}
);
僅使用CSS:
button:hover + button {border-left-color: #6e6e6e;}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.