class= "add-comment" > <view class="active" wx:if="{{activeComment}}"> <textarea class="commentText" placeholder="说点什么吧" focus maxlength="400" bind:input="setValue" data-key="commentText"> textarea> <view class="operation" > <view class="cancel" bind:tap="activeComment">取消 view> <view class="post" bind:tap="postComment">发送 view> view> view> <view class="unactive" wx:else bind:tap="activeComment">说点什么吧 view> view>
fixed 在 add-comment 上, 尝试了给textarea加fixed="true"也无效
使用cursor-spacing值指定光标与键盘的距离。