We are developing a mobile application Phonegapwith a fixed header and footer. But if any form elements are concentrated, the whole page becomes scrollable, and the loss of the header and footer are fixed. On Android, it works fine, but on iOS, we run into such problems.
Update: -
Viewport Meta strong>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, height=device-height, width=device-width ,target-densityDpi=device-dpi"/>
Application title
<div data-role="header" id ="Top_content" data-position="fixed" data-tap-toggle="false" data-hide-during-focus="">
<div id="jqm-homeheader" class="jqm-homeheader" align="center">
<img src="images/logo.png" align="center">
</div>
<div data-theme="c" data-add-back-btn="true" >
<div id="search-box1">
<form action="" onsubmit="custom_search();">
<input type="search" name="search-product" id="search-product" value="" placeholder="Search" style="width:90%;" data-theme="s" />
</form>
</div>
</div>
</div>
source
share