<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.container {
width: 450px;
padding: 10px;
border: 1px solid #ccc;
margin: 20px auto;
line-height: 30px;
}
.title {
font-size: 24px;
color: burlywood;
font-weight: 800;
}
.container table {
color: #333;
font-size: 12px;
margin: 10px 0px;
}
.head {
background-color: aquamarine;
}
tr img {
width: 50px;
height: 30px;
display: block;
float: left;
margin: 5px;
}
.container .num {
width: 50px;
}
.del .go {
cursor: pointer;
}
.total {
font-size: 24px;
font-family: 900;
color: red;
margin: 10px auto;
}
</style>
</head>
<body>
<div class="container">
<div class="title">
全部商品
</div>
<table>
<tr class="head">
<td>
<input type="checkbox"> <span>全选</span>
</td>
<td>
商品
</td>
<td>
单价
</td>
<td>
数量
</td>
<td>
小计
</td>
<td>
操作
</td>
</tr>
<tr data-id="">
<td>
<input type="checkbox" checked>
</td>
<td>
<img src="./imgs/a.jpg" alt="">
<p>东西1</p>
</td>
<td>
¥100
</td>
<td>
<span>-</span>
<input type="number" class="num" value="200">
<span>+</span>
</td>
<td>
小计¥100
</td>
<td>
<p class="del">删除</p>
</td>
</tr>
</table>
<div>
<span>总价:</span>
<div class="total">100</div>
<div class="go">去结算</div>
</div>
</div>
<script>
</script>
</body>
</html>
09-16
2105