Jquery按钮换色

编程有钱人了 编程有钱人了 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
看代码

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>111111111111</title>
<script src="js/jquery-1.7.1.js" type="text/javascript"></script>
<script type="text/javascript">
function checkColor()
{
$("#Button2").css("background-color", "#00a0e9").delay(500).css("background-color", "#7ecef4");
}
</script>
</head>

<body>
<input id="Button1" type="button" value="button" onclick="checkColor()"/>
<input id="Button2" type="button" value="button" />

</body>
</html>

实现停顿换色的效果 怎么不行啊?求教啊
那个delay(500) 没作用
...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部
编程有钱人了
JavaScript 87,983 成员 224,680 内容