First, the implementation of click button Pop-up layer and click on the hidden layer of space, event.stoppropagation () is the key to prevent conduction.
<script type= "Text/javascript" >
$ (function () {
$ (' #btnShow '). Click (Function (event) {
event.stoppropagation ();
$ (' #div_apply '). Toggle ();
});
$ (document). Click (Function (Event) {$ (' #div_apply '). Hide ()});
})
</script>
Second, in iOS, the page uses position:fixed to locate the head or tail, and the page has input or textarea box, in the input box to get focus, pop-up soft keyboard, the original fixed in the end of the column will run to the middle of the page, The solution is to decide to change the positioning method to absolute positioning under iOS.
<script type= "Text/javascript" >
if (/iphone|ipad|ipod/i.test (navigator.useragent))
{
$ (". Head"). CSS ("position", "absolute");
};
</script>
Solution for fixed failure and hidden layer in click Blank when iOS eject soft keyboard