<!DOCTYPE html> <html> <head> <title>有边框的table</title> <meta http-equiv="Content-Type" content="text\html; charset=utf-8"> <style type="text/css"> table tr td,th{border:1px solid #000;} </style> <style> span{color; red; } </style> </head> <body> <h1>各班成绩</h1> <table summary=""> <tr> <th><span>班级</span></th> <th><span>学生数</span></th> <th><span>平均成绩</span></th> </tr> <tr> <td>一班</td> <td>30</td> <td>89</td> </tr> <tr> <td>二班</td> <td>35</td> <td>85</td> </tr> <tr> <td>三班</td> <td>32</td> <td>80</td> </tr> </table> </body> </html>
我猜这样但是只能显示边框,字的颜色没有变。请问应该怎样同时做到加边框和变颜色。谢谢
Kit_G