首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >悬停时jQuery动画边框颜色?

悬停时jQuery动画边框颜色?
EN

Stack Overflow用户
提问于 2009-05-01 22:05:52
回答 6查看 67.2K关注 0票数 17

使用color plugin在悬停时设置背景颜色动画。

$(function() {
    $('.listing-2 li a').mouseover(function() {
        $(this).animate({
            backgroundColor: "#0e7796"
        }, 'fast');
    });
    $('.listing-2 li a').mouseout(function() {
        $(this).animate({
            backgroundColor: "#d6f2c5"
        }, 'fast');
    });
});

如何对边框颜色执行相同的操作?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/813493

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档