键盘弹出时可使分区滚动

时间:2015-10-28 06:43:27

标签: javascript tizen-web-app

我有一个表单,我正在创建一个tizen应用程序。当键盘出现时,两个字段被键盘覆盖。我需要在键盘弹出时使整个部分可滚动。我试过使用溢出,但它不起作用。

<body>
<div id="headerdiv">
    ADD YOUR VEHICLE


enter code here
</div>
<div id=form>
textarea class="manufacturer" cols="40"  rows="1"  placeholder="Manufacturer*"></textarea>
<textarea class="model" cols="40"  rows="1"  placeholder="Model*"></textarea>
 <span id=date_purch>Date of Purchase</span>
<p>
<input class="inputDate" id="inputDate" value="10/28/2015" readonly/>

  <span id=reg_numb>Registration Number</span>
<textarea class="number" cols="40"  rows="1"  placeholder="AA 00 AA 0000* ">   </textarea>
<span id=front_pres>Tyre Pressure:Front</span>
<textarea class="front" cols="40"  rows="1"  placeholder="32 PSI*"></textarea>
<span id=rear_pres>Tyre Pressure:Rear</span>
<textarea class="rear" cols="40"  rows="1"  placeholder="32 PSI*"></textarea> 
</div>

<button id="add" onclick="add()">Add</button>
<div id="cancel" onclick="back()">Cancel</div>

</body>

Screenshot

键盘隐藏了轮胎压力场。

1 个答案:

答案 0 :(得分:0)

您可能需要查看以下链接。 https://developer.tizen.org/development/guides/web-application/tizen-features/ime-application

特别是, setKeyboardSizes(portraitWidth,portraitHeight,landscapeWidth,landscapeHeight)

允许您设置键盘的尺寸。