样式中出现的&表示父元素
.tab-item
flex: 1
text-align: center
&:nth-child(1)
color:red
& > a
font-size: 14px
&.active
color: rgb(240, 20, 20)
&:nth-child(1) :表示第一个 class="tab-item" 的样式;
&.active :表示 class="active" 的a标签的样式;