使用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 回复
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)