背景颜色向下滑动 [英] Background color slide down

查看:90
本文介绍了背景颜色向下滑动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个按钮列表,当我将鼠标悬停在它们上面时,我想将新的背景颜色向下滑动,我知道slide()函数,但是我如何将其应用于背景颜色属性?

I have a list of buttons, and when I hover over them I want a new background color to slide down, I know about the slide() function but how would I apply it to the background color property?

推荐答案

我不认为jQuery支持开箱即用地对background属性设置动画.有一些插件可以帮助您实现此效果.乔纳森·斯努克(Jonathan Snook)对此发表了一篇文章:

I don't think that jQuery supports animating the background property out of the box. There are plugins that will help you achieve this effect though. Jonathan Snook has an article about it:

那是从2008年开始的,因此可能会有所改善.

It's from 2008 though so there could be an improvement on this.

这篇关于背景颜色向下滑动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆