input标签设置背景颜色

给input的button按钮的点击事件添加背景颜色变化

1. $("#aa").style.backgroundColor = 'red'这种写法报错

2. $("#aa").css("background-color","gray");这种写法可以实现背景色的改变

posted @ 2018-01-02 13:28  枫&铃  阅读(20410)  评论(0编辑  收藏  举报