css样式:

<style type="text/css">
  tr:nth-child(2n){
    background:#eeeeee;
  }
  table { background:#DCDFE6; width: 100%;margin-left: 15px;}
  table td { background:#FFFFF;height:30px }
</style>

html代码:

<table style="width:65%" border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td>Alarm Type </td> <td>Motion Detection(2)</td>
  </tr>
  <tr>
   <td>GPS </td> <td>114.072739,22.5430374</td>
  </tr>
  <tr>
   <td>Speed </td> <td>46 KM/H</td>
  </tr>
  <tr>
   <td>Device No </td> <td>11110005</td>
  </tr>
  <tr>
   <td>Device Name </td> <td>11110005</td>
  </tr>
</table>

效果:
image.png

最后修改:2022 年 09 月 22 日
如果觉得我的文章对你有用,请随意赞赏