在vantui的弹出窗口van-popup中,如何现文字两边加划线?
发布于 4 年前 作者 ejin 554 次浏览 来自 问答
在正常页面中,有效果,但在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;
  width100%;
  height60rpx;
  margin-top100rpx;
  
}

.befor{
  width200rpx;
  height1rpx;
  background: red!important;
  line-height60rpx!important;
}
.after{
  width200rpx;
  height1rpx;
  background: red!important;
  line-height60rpx!important;
}

.reason_txt{
  position: relative;
  margin-top: -28rpx;
}


2 回复

好奇怪,在下面在添加一个控件,又显示了

写个代码片段

回到顶部