在<view>设定{{isShow?show:hide}},flex-direction:row失效

发布于 8 年前作者 li884067 次浏览最后编辑 8 年前来自 ask

<view class="inputBox1 {{loginType==1?'show':'hide'}}">

<input class="input_user" password="true" bindinput="bindPassInput" cursor-spacing="50" placeholder="请输入验证码"></input>

<text class="inputBox1_text">获取验证码</text>

<view>111</view>

</view>


.inputBox1{

flex-direction: row;

align-items: center;

margin-top: 40rpx;

width: 542rpx;

border-bottom: 2rpx solid #5184FB;

}

1 回复
yong20
yong201 楼6 年前
display:flex