在vantui的弹出窗口van-popup中,如何现文字两边加划线?
在正常页面中,有效果,但在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;
}