实现购物的商品加减,实现商品价钱的加减
<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>
div {
width: 400px;
height: 240px;
border-style: solid;
margin: 0 auto;
text-align: center;
}
input {
width: 20px;
}
table {
margin: 0 auto;
}
</style>
</head>
<body>
<div id="div01">
<h1>购物车</h1>
<table border="1">
<tr>
<th>全选<input type="checkbox" id="allxuan" onclick="allxuan(this)"></th>
<th>名称</th>
<th>单价</th>
<th>数量<