收藏
回答

输入框focus的时候 placeholder会位移

问题模块
API和组件


<view class='list' bindtap='clickName'>

<view class='list_left'>姓名</view>

<view class='list_right'>

<input class='list_input' placeholder='请输入姓名' focus="{{focusName}}" placeholder-class="input-placeholder" confirm-type="next" bindinput="inputName"></input>

</view>

</view>




.list {

height: 88rpx;

display: flex;

line-height: 88rpx;

padding: 0 28rpx;

box-sizing: border-box;

justify-content: space-between;

border-bottom: 1rpx solid #f5f5f5;

align-items: center;

}




.list_input {

text-align: right;

padding-right: 20rpx;

}


.input-placeholder{

color: #999;

font-size: 27rpx;

}


最后一次编辑于  2017-09-15  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏投诉关注问题回答