
选中节点的相邻节点底部border-radious左边不生效 "全部" 这个标签后边的border-bottom-right-radius: 20rpx; 没有生效
我的代码如下
```javascript
<view class="tabs">
<view
v-for="(tab, index) in list"
:key="index"
:class="['tab', { active: current === index }]"
@tap="tabChange(index)"
>
<text>{{ tab }}</text>
</view>
</view>
```javascript
data() {
return {
list: ['全部 11', '冲 12', '稳 13', '保 14'],
current: 0,
}
}
```css
.tabs {
display: flex;
justify-content: space-between;
padding: 10px;
background-color: #f0f0f0;
}
.tab {
padding: 10px;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
text-align: center;
flex: 1;
background-color: #e0e0e0;
color: black;
font-size: 16px;
}
.tab.active {
background-color: white;
color: red;
font-weight: bold;
border: 1px solid #ccc;
}
.tab + .active {
border-bottom-right-radius: 20rpx;
border-bottom-left-radius: 20rpx;
}
.active + .tab {
border-bottom-left-radius: 20rpx;
}
.tab.active {
border-bottom-right-radius: 20rpx;
border-bottom-left-radius: 20rpx;
}
.tab + .active {
border-bottom-right-radius: 20rpx;
border-bottom-left-radius: 20rpx;
}
.tab-content {
padding: 20px;
background-color: #ffffff;
margin-top: 10px;
border-radius: 10px;
}
```