CSS:

.imgECheck {
    position: absolute;
    top: 0;
    right: 5px;
    width: 15px;
    height: 15px;
    display: none;
}
.imgFCheck {
    position: absolute;
    top: 0;
    right: 5px;
    width: 15px;
    height: 15px;
    display: none;
}


如何在上面的JQuery中实现该功能。

最佳答案

$(function () {
    $(".btn-small").on("click", function () {
       $('.imgFCheck').hide();
       $(this).find('.imgFCheck').show();
    });
});

关于jquery - 悬停并单击相应的div时如何显示图像,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/34746417/

10-12 13:14