<template>
<div class="box">
<div v-for="(item, i) in Array(4)" :key='i' class='item'>
<span>歌曲</span>
</div>
</div>
</template>
<style scoped>
.box{
display: flex;
line-height: 44px;
}
.item{
flex: 1;
background-color: blue;
color: red;
text-align: center;
}
.item span{
border-bottom: 2px solid red;
padding-bottom: 8px;
}
</style>
来源:CSDN
作者:QunBingCheng
链接:https://blog.csdn.net/chengQunBin/article/details/104574356