The hidden function of the applet view hidden is invalid and cannot be hidden

 question:

Hidden is turned on but does not take effect, and the word manager is always displayed.

  <view style="ont-size: 28rpx;color: #959595;display: inline-block;" hidden>
      经理 </view>

solve:

style is an inline style with greater weight. Put the style into wxss.

//wxss
.dep_name {
  font-size: 28rpx;color: #959595;display: inline-block;
}

//wxml
<view class="dep_name" hidden>
   </view>

おすすめ

転載: blog.csdn.net/LlanyW/article/details/131449715