<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<style type="text/css">
boby{
margin: 0 auto;
padding: 0px;
}
#one{
padding: 20px; /*用来设置内边距*/
}
.box1{
height: 100%; /*表格屏幕占比*/
width: 100%;/*表格屏幕占比*/
border-collapse: separate;/*表格中行与行的间隔*/
border-spacing: 0px 5px;/*表格中行与行的间隔*/
}
.box1 td{
background-color:rgb(235,235,235); /*表格中单元格背景颜色*/
padding:14px; /*表格中单元格的间隔*/
}
.box1 td:nth-child(1){
border-top-left-radius:15px; /*通过定位器单独定位第一行的单元格设置圆角*/
border-bottom-left-radius:15px;
}
.box1 td:nth-child(6){
border-top-right-radius:15px;/*通过定位器单独定位第二行的单元格设置圆角*/
border-bottom-right-radius:15px;
}
p{
font-size: 22px; /*各地区字体大小*/
}
p span{
color:rgb(100,100,100); /*时间字体颜色*/
font-size: 14px;/*时间字体大小*/
}
tr td:nth-child(2)
{
color: cornflowerblue; /*通过定位器设置第二列颜色*/
}
tr td:nth-child(3)
{
color:red;/*通过定位器设置第三列颜色*/
}
tr td:nth-child(4)
{
color: chocolate;/*通过定位器设置第四列颜色*/
}
th span{
color:rgb(120,120,120);/*设置第一行颜色*/
font-weight: normal;/*取消第一行粗体*/
font-size: 14px;/*设置字体大小*/
float:left;/*左浮动对齐第二行*/
margin: 12px;/*设置外边距让第一行和第二行对齐*/
}
th a{
color: cornflowerblue; /*单独设置"新增"的颜色*/
font-weight: normal;/*单独取消"新增"的粗体*/
font-size: 14px;/*单独设置“新增”字体大小*/
float:left;/*单独设置"新增"的浮动*/
margin: 12px;/*单独设置"新增"的外边距让第一行和第二行对齐*/
}
sup{
font-size: 12px; /*设置上标字体大小*/
color: rgb(255,255,255);/*设置上标字体颜色*/
background-color: red;/*设置上标背景颜色*/
border-top-left-radius:6px;/*设置左上圆角*/
border-bottom-right-radius: 6px;/*设置右下圆角*/
padding: 2px;/*设置上标内边距*/
position:relative;/*设置上标相对定位*/
bottom: 15px;
right: 44px;
}
.sup sup{ /*内蒙古字体为3个字 相对定位在字体上方不能对齐*/
position:relative;/*设置上标相对定位*/
right: 60px;
}
}
</style>
<body>
<div id="one">
<p style="line-height: 0px;">各地区疫情详细</p>
<p style="line-height: 0px;"><span>截止2021-11-29 08:36:49 数据统计</span></p>
<table class="box1">
<tr>
<th><span>地区</span></th>
<th><a>新增</a></th>
<th><span>现有</span></th>
<th><span>累计</span></th>
<th><span>治愈</span></th>
<th><span>死亡</span></th>
</tr>
<tr>
<td><sup></sup></td>
<td>+6</td>
<td>98</td>
<td>1697</td>
<td>1597</td>
<td>2</td>
</tr>
<tr>
<td class="sup"><sup></sup></td>
<td>+20</td>
<td>20</td>
<td>638</td>
<td>617</td>
<td>1</td>
</tr>
<tr>
<td></td>
<td>+10</td>
<td>1998</td>
<td>16588</td>
<td>13742</td>
<td>848</td>
</tr>
<tr>
<td></td>
<td>+6</td>
<td>72</td>
<td>2853</td>
<td>2774</td>
<td>7</td>
</tr>
<tr>
<td></td>
<td>+4</td>
<td>49</td>
<td>3301</td>
<td>3244</td>
<td>8</td>
</tr>
<tr>
<td></td>
<td>+3</td>
<td>81</td>
<td>12427</td>
<td>12133</td>
<td>313</td>
</tr>
<tr>
<td></td>
<td>+3</td>
<td>33</td>
<td>1020</td>
<td>980</td>
<td>7</td>
</tr>
<tr>
<td></td>
<td>+1</td>
<td>75</td>
<td>396</td>
<td>319</td>
<td>2</td>
</tr>
<tr>
<td></td>
<td>+1<</td>
<td>5</td>
<td>265</td>
<td>260</td>
<td>0</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>2</td>
<td>68311</td>
<td>63797</td>
<td>4512</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>46</td>
<td>1992</td>
<td>1933</td>
<td>13</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>75</td>
<td>1637</td>
<td>1540</td>
<td>22</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>17</td>
<td>1619</td>
<td>1602</td>
<td>0</td>
</tr>
<tr>
<td></td>
<td>待更新</td>
<td>35</td>
<td>1501</td>
<td>1465</td>
<td>1</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>26</td>
<td>1453</td>
<td>1420</td>
<td>7</td>
</tr>
<tr>
<td></td>
<td>待更新</td>
<td>15</td>
<td>1320</td>
<td>1304</td>
<td>1</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>30</td>
<td>1271</td>
<td>1238</td>
<td>3</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>2</td>
<td>1199</td>
<td>1193</td>
<td>4</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>10</td>
<td>1191</td>
<td>1172</td>
<td>9</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>0</td>
<td>1008</td>
<td>1002</td>
<td>6</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>0</td>
<td>981</td>
<td>978</td>
<td>3</td>
</tr>
<tr>
<td></td>
<td>待更新</td>
<td>0</td>
<td>959</td>
<td>958</td>
<td>1</td>
</tr>
<tr>
<td></td>
<td>157</td>
<td>784</td>
<td>625</td>
<td>2</td>
<td>2</td>
</tr>
<tr>
<td></td>
<td>待更新</td>
<td>8</td>
<td>707</td>
<td>696</td>
<td>3</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>5</td>
<td>610</td>
<td>599</td>
<td>6</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>4</td>
<td>583</td>
<td>576</td>
<td>3</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>23</td>
<td>530</td>
<td>504</td>
<td>3</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>0</td>
<td>334</td>
<td>342</td>
<td>2</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>0</td>
<td>190</td>
<td>184</td>
<td>6</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>0</td>
<td>159</td>
<td>157</td>
<td>2</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>0</td>
<td>122</td>
<td>122</td>
<td>0</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>0</td>
<td>77</td>
<td>77</td>
<td>0</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>3</td>
<td>30</td>
<td>27</td>
<td>0</td>
</tr>
<tr>
<td></td>
<td>0</td>
<td>0</td>
<td>1</td>
<td>1</td>
<td>0</td>
</tr>
</table>
</div>
</body>
</html>