色块图

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style type="text/css">
/*#191970*/
table {
width: 100%;
border: 1px solid #cccccc;
font-size: 12px;
padding-bottom: 5px;
}

th {
border-bottom: 1px solid #cccccc;
text-align: left;
}

th, td {
padding-top: 10px;
padding-bottom: 10px;
padding-left: 5px
}

td {
position: relative;
}

td:nth-child(3), td:nth-child(4), td:nth-child(5), td:nth-child(6) {
padding-left: 5px;
border-top: 5px solid white;
border-right: 5px solid white;
}

.bac {
position: absolute;
width: 100%;
height: 100%;
background: #0000ff;
top: 0;
left: 0;
}

.num {
position: absolute;
display: inline-block;
top: 7px;
left: 5px;
}
</style>
</head>
<body>
<table cellpadding="0" cellspacing="0">
<tr>
<th>日期</th>
<th>新用户</th>
<th>次日</th>
<th>3日</th>
<th>7日</th>
<th>30日</th>
</tr>

<tr>
<td>2018-02-03</td>
<td>222</td>
<td>
<div class="bac" style="opacity: 0.1"></div>
<span class="num">4.555%</span></td>
<td>
<div class="bac" style="opacity: 0.2"></div>
<span class="num">4.555%</span></td>
<td>
<div class="bac" style="opacity: 0.3"></div>
<span class="num">4.555%</span></td>
<td>
<div class="bac" style="opacity: 0.4"></div>
<span class="num">4.555%</span></td>
</tr>
<tr>
<td>2018-02-03</td>
<td>222</td>
<td>
<div class="bac" style="opacity: 0.6"></div>
<span class="num">4.555%</span></td>
<td>
<div class="bac" style="opacity: 0.5"></div>
<span class="num">4.555%</span></td>
<td>
<div class="bac" style="opacity: 0.4"></div>
<span class="num">4.555%</span></td>
<td>
<div class="bac" style="opacity: 0.3"></div>
<span class="num">4.555%</span></td>
</tr>

<tr>
<td>2018-02-03</td>
<td>222</td>
<td>
<div class="bac" style="opacity: 0.9"></div>
<span class="num">4.555%</span></td>
<td>
<div class="bac" style="opacity: 0.8"></div>
<span class="num">4.555%</span></td>
<td>
<div class="bac" style="opacity: 0.7"></div>
<span class="num">4.555%</span></td>
<td>
<div class="bac" style="opacity: 0.6"></div>
<span class="num">4.555%</span></td>
</tr>
<tr>
<td>2018-02-03</td>
<td>222</td>
<td>
<div class="bac" style="opacity: 0.6"></div>
<span class="num">4.555%</span></td>
<td>
<div class="bac" style="opacity: 0.7"></div>
<span class="num">4.555%</span></td>
<td>
<div class="bac" style="opacity: 0.8"></div>
<span class="num">4.555%</span></td>
<td>
<div class="bac" style="opacity: 0.9"></div>
<span class="num">4.555%</span></td>
</tr>
</table>
<script>
</script>
</body>
</html>













































转载于:https://www.cnblogs.com/liuhao-web/p/9001825.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值