0
我正在寻找如何自定义选定文本框时在网站中显示的软键盘布局的示例。我可以找到一个完全成熟的android应用程序的例子,但不是在一个网站内。使用javascript更改软键盘布局
我希望能够在软键盘打开时不显示笑脸或数字/特殊字符键。
我正在寻找如何自定义选定文本框时在网站中显示的软键盘布局的示例。我可以找到一个完全成熟的android应用程序的例子,但不是在一个网站内。使用javascript更改软键盘布局
我希望能够在软键盘打开时不显示笑脸或数字/特殊字符键。
看看您是否可以右击浏览器中的softkeyboard元素。
如果是这样,点击检查元素,看看是否可以找到包含笑脸或 号码/特殊字符键的元素。
然后,您可以构建一个脚本来隐藏它或在页面加载时将其删除。
使用jQuery它可能是这个样子:
//note: You must place this code in a script tag after you have loaded JQuery.
$(document).ready(function(){//begin document ready function
//store the id or the class of the key to hide
var key = $("#nameOfKeyID");
//hide the key
$(key).hide();
//or remove the key
//this will remove it from the page
//and you will not be able to perform operations on it
$(key).remove();
});//end document ready function
感谢您的建议,但不幸的是我不能得到的元素。我会认为有一个简单的方法来编程修改布局! – snakeeyes 2014-11-01 23:29:25