码迷,mamicode.com
首页 > 其他好文 > 详细

table 设置每列的颜色

时间:2018-10-26 13:15:38      阅读:347      评论:0      收藏:0      [点我收藏+]

标签:red   meta   css   order   ack   code   table   tle   fir   

ISBNTitlePrice
3476896 My first HTML $53
5869207 My first CSS $49

 

 
<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title></title> 
</head>
<body>

<table border="1" clas="left">
  <colgroup>
    <col style="background-color:red;width: 100px;text-align:left;">
    <col style="background-color:orange">
    <col style="background-color:orange">
  </colgroup>
  <tr>
    <th >ISBN</th>
    <th>Title</th>
    <th>Price</th>
  </tr>
  <tr>
    <td>3476896</td>
    <td>My first HTML</td>
    <td>$53</td>
  </tr>
  <tr>
    <td>5869207</td>
    <td>My first CSS</td>
    <td>$49</td>
  </tr>
</table>

</body>
</html>

 

table 设置每列的颜色

标签:red   meta   css   order   ack   code   table   tle   fir   

原文地址:https://www.cnblogs.com/hill-foryou/p/table.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!