如何调整谷歌虚拟键盘的大小和位置?



将虚拟键盘放入视图后,我在重新调整键盘大小及其显示位置时遇到困难。

我的代码:

<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.

最新更新