js实现简单选项卡
直接上代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>选项卡</title>
</head>
<style>
.box{
width:600px;
height: 600px;
border: 1px solid #000;
position: relative;
margin: 50px auto;
display: flex;
flex-flow: column;
justify-content: center;
align-content: center;
}
.box1{
width: 100%