单击html输入

时间:2015-09-04 08:24:40

标签: javascript html html5 input

点击html输入后如何禁用手机上的键盘显示?

因为我显示自定义键盘,所以在手机上我会在显示屏上显示两个键盘。

<input style="width:160px; white-space: nowrap;"  type='text' ng-model="answer" ng-virtual-keyboard/>

1 个答案:

答案 0 :(得分:0)

如果您尝试将输入设置为readonly=true,则应该停止显示

<input style="width:160px; white-space: nowrap;" readonly="true" type='text' ng-model="answer" ng-virtual-keyboard/>