jquery animate函数不能处理背景色渐变,需要使用jquery.color插件

gitHub地址:https://github.com/jquery/jquery-color/

使用代码:

$(function(){
  $("#cdiv").animate(
    {
	  backgroundColor:'#FF0000'
	},1000
   ) })

演示:

http://runjs.cn/detail/xmax7vo3 

相关文章:

  • 2021-10-22
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
猜你喜欢
  • 2021-12-20
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2021-12-20
相关资源
相似解决方案