1.购物车效果图
![](https://i-blog.csdnimg.cn/blog_migrate/8e4b7d905e6db0386aa1377acc311d5e.png)
2.代码展示
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<style type="text/css">
body{
font-size: 16px;
}
table {
width: 1200px;
}
ul li{
list-style: none;
}
table th {
width: 100px;
}
table td {
width: 200px;
text-align: center;
}
.m {
width: 20px;
}
.shang{
width: 30%;
float: left;
text-align: center;
}
</style>
<body>
<div id="app">
<div id="div">
<h1>商品</h1>
<div class="shang" v-for="item in list">
<ul>
<li>{
{item.name}}</li>
<li><img v-bind:src="item.imgsrc" wi