HTML部分
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>购物车</title>
<style>
#style1{width: 1200px;height: 40px;margin: 0 auto;background-color: pink;}
#style2{width: 1200px;height: 35px;margin: 0 auto ;background-color: aqua}
#style3{width: 1200px;height: 400px;margin: 0 auto;}
#style4{width: 1200px;height: 80px;margin: 0 auto;background-color:greenyellow}
td{text-align: center;}
a{text-decoration: none;color: black;}
</style>
</head>
<body>
<div id="style2">
</div>
<div id="style3">
<table id="tb">
<tr>
<td style="text-align: left;"><input type="checkbox" width="0px" id="cboxAll" onClick="hobbyck(this)">全选</td>
<td width="200px">商品信息</td>
<td width="200px" >单价(元)</td>
<td width="200px">数量</td>
<td width="200px">金额(元)</td>
<td width="200px">操作</td>
</tr>
<tr>
<td style="text-align: left;"><input type="checkbox" width="30px" name=