选中和取消复选框时的背景颜色显示
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <script type="text/javascript" src="Js/jquery.js"></script> <style> table,tr,thead{ border: 2px solid #000; border-collapse: collapse; width: 200px; height: 20px; background-color: cornflowerblue; } .odd{ background-color: antiquewhite; } .even{ background-color: aquamarine; } .checked{ background-color: yellow; </style> </head> <body> <table > <thead> <tr><td></td><td>姓名</td><td>薪水</td><td>年龄</td></tr> </thead> <tr ><td><input type="checkbox"/></td><td>张三</td><td>20000</td><td>23</td></tr> <tr ><td><input type=