点击按钮唤起键盘并且键盘上带有输入框,点击发送或者空白处可将输入的内容发送到指定的顶部输入框,不理解的可以私聊本人哦!!!
1、编辑好静态文件
.HTML文件
<!-- 点击需要编辑的输入框,“顶部输入框” -->
<view class="editView">
<input type="text" placeholder="请输入内容" value="{
{inputContent}}" focus="{
{focus}}"></input>
<view class="editBtn" bindtap="clickBtn">编辑</view>
</view>
.css文件
<!-- 点击需要编辑的输入框的样式 -->
.editView{
width: 100%;
height: 110rpx;
background-color: rgb(35, 36, 35);
display: flex;
flex-direction: row;
}
.editView input{
width: 580rpx;
height: 90rpx;
background-color: #fff;
line-height: 60rpx;
margin: 10rpx 0 10rpx 20rpx;
border-radius: 10rpx 0 0 10rpx;
padding-left: 20rpx;
}
.editView .editBtn{
border-radius: 0 10rpx 10rpx 0;
width: 130rpx;
height: 90rpx;
margin: 10rpx 20rpx 10rpx 0;
text-align: center;
align-se