如何调整 Google 的虚拟键盘大小和位置?
How to re-size and re-position Google's virtual keyboard?
在看到虚拟键盘后,我在调整键盘大小及其出现位置时遇到困难。
我的代码:
<script type="text/javascript">
// Load the Google Onscreen Keyboard API
google.load("elements", "1", {
packages: "keyboard"
});
function onLoad() {
var kbd = new google.elements.keyboard.Keyboard(
[google.elements.keyboard.LayoutCode.URDU],
['urd']);
}
function addOption(selectbox, text, value) {
var optn = document.createElement("OPTION");
optn.text = text;
optn.value = value;
selectbox.options.add(optn);
}
google.setOnLoadCallback(onLoad);
</script>
<div class="form-group">Urdu
<div class="col-md-offset-2 col-md-10">
<textarea id="urd" style="width: 600px; height: 200px;"></textarea>
</div>
</div>
任何人都可以帮忙或任何参考将不胜感激。
我觉得这很有用,认为它可能有帮助...
Important: The Google Virtual Keyboard API has been officially deprecated
as of May 26, 2011. It will continue to work as per our deprecation policy.
在看到虚拟键盘后,我在调整键盘大小及其出现位置时遇到困难。
我的代码:
<script type="text/javascript">
// Load the Google Onscreen Keyboard API
google.load("elements", "1", {
packages: "keyboard"
});
function onLoad() {
var kbd = new google.elements.keyboard.Keyboard(
[google.elements.keyboard.LayoutCode.URDU],
['urd']);
}
function addOption(selectbox, text, value) {
var optn = document.createElement("OPTION");
optn.text = text;
optn.value = value;
selectbox.options.add(optn);
}
google.setOnLoadCallback(onLoad);
</script>
<div class="form-group">Urdu
<div class="col-md-offset-2 col-md-10">
<textarea id="urd" style="width: 600px; height: 200px;"></textarea>
</div>
</div>
任何人都可以帮忙或任何参考将不胜感激。
我觉得这很有用,认为它可能有帮助...
Important: The Google Virtual Keyboard API has been officially deprecated
as of May 26, 2011. It will continue to work as per our deprecation policy.