小程序模拟器,input键盘不弹出
发布于 5 年前 作者 gangkang 2503 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

点击模拟器中的input,不弹出键盘

  • 提供一个最简复现 Demo

wxml

<view class=‘input_view’>

<input class=‘comment_input’ type=‘text’ placeholder=‘前方高能,火速评论’></input>

</view>

wxss

.input_view{

width: 100%;

height: 44px;

position: fixed;

left: 0;

right: 0;

bottom: 0;

border-top: 1px solid rgb(243, 242, 243);

background-color: white;

}

.comment_input{

height: 30px;

line-height: 30px;

background-color: rgb(243, 242, 243);

margin: 7px 40px 0 40px;

font-size: 14px;

border-radius: 15px;

padding-left: 20px;

padding-right: 15px;

}

2 回复

PC上弹不出键盘

模拟器没得键盘

回到顶部