小程序 input 软键盘与输入框的距离

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/besttoby01/article/details/85341929

cursor-spacing:  
类型:Number
指定光标与键盘的距离,单位 px 。取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离
auto-focus:true
类型:Boolean
自动聚焦,拉起键盘。如果你设置为true,那边你打开页面就会弹出键盘,这时可能会遮挡一些控件。
此功能即将废弃,尽量使用focus
focus:
类型:boolean
获取焦点
confirm-type
类型:boolean
设置键盘右下角按钮的文字,这个很有意思,可以根据需求填写
confirm-hold
类型:boolean
点击键盘右下角按钮时是否保持键盘不收起

猜你喜欢

转载自blog.csdn.net/besttoby01/article/details/85341929