使用jquery修改div元素的背景色 要求: 随意颜色,点击DIV即修改 代码 <div id="div02">我是div</div> $("#div02").on('click',function(){ $(this).css("background","red"); });