一、选项卡
<!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>
* {
margin: 0px;
padding: 0px;
list-style: none;
}
ul{
overflow: hidden;
}
li {
width: 180px;
height: 30px;
float: left;
line-height: 30px;
text-align: center;
cursor: pointer;
}
li.current {
background: lime;
color: white;
}
</style>
</head>
<body>
<div id="app">
<ul>
<li v-for=