收藏
回答

使用modal 加入iput输入框时 会先偏左然乎才居中显示 这是为什么?

<view class="cu-modal {{modalName=='DialogModal2'?'show':''}}">
  <view class="cu-dialog">
    <view class="cu-bar bg-white justify-end">
      <view class="content">修改昵称</view>
    </view>
    <view class="padding-xl bg-white ">
     <input class="text-cnter" placeholder="请输入新昵称" value="ppppp"/>
    </view>
    <view class="cu-bar bg-white">
      <view class="action margin-0 flex-sub text-green " bindtap="hideModal">取消</view>
      <view class="action margin-0 flex-sub " bindtap="hideModal">确定</view>
    </view>
  </view>
</view>


回答关注问题邀请回答
收藏

3 个回答

  • 铭锋科技
    铭锋科技
    2019-08-01

    样式问题

    2019-08-01
    有用
    回复 1
    • 小鹏
      小鹏
      2019-08-01
      其他控件是没有问题的只有input会这样,不设pading都能挤到下面的布局上面再弹回来
      2019-08-01
      回复
  • 是小白啊
    是小白啊
    2019-08-01

    麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

    2019-08-01
    有用
    回复 5
  • 林学
    林学
    2019-08-01

    趁大家不注意,偷偷到右边玩一下

    2019-08-01
    有用
    回复
登录 后发表内容