在正常页面中,有效果,但在van-popup没有效果
<view class='main_view'>
<div class='befor'></div>
<div class='reason_txt'>入网的理由</div>
<div class='after'></div>
</view>
.main_view{
display: flex;
flex-direction: row;
justify-content: space-around;
width: 100%;
height: 60rpx;
margin-top: 100rpx;
}
.befor{
width: 200rpx;
height: 1rpx;
background: red!important;
line-height: 60rpx!important;
}
.after{
width: 200rpx;
height: 1rpx;
background: red!important;
line-height: 60rpx!important;
}
.reason_txt{
position: relative;
margin-top: -28rpx;
}
写个代码片段
好奇怪,在下面在添加一个控件,又显示了