<html>
<head>
<style type="text/css">
body.yellow1{color:yellow;}
col.colred{
background-color:red;
text-align:right; <!--为什么这个不起作用呢?-->
}
</style>
</head>
<body class="yellow1">
<table border="1">
<col class="colred"/>
<col class="colred"/>
<tr>
<th>大米</th>
<th>小米</th>
</tr>
<tr>
<td>1 </td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
</body></html>
---------------
------解决方案--------------------
浏览器对于 col 支持不一样