I ran into a problem when I run the phone code for the iphone, that is, when the soft keyboard (by default) of the iphone / ipad device appears, the background image disappears or changes, which you can see in the images below. Please suggest if you have an idea to solve this problem.


Here are some codes:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="user-scalable=0, initial-scale=1, minimum- scale=1, width=device-width, height=device-height" />
body:
<body>
<div id="login-back" >
<section class="log-email">
<a class="back-icon" href="index.html"><img src="img/back-icon.png" alt=""></a>
<h3>Login</h3>
<div class="log-email-container">
<ul class="contact_form">
<li class="clearfix">
<input type="text" name="" id="email" placeholder="E-mailadres">
</li>
<li class="clearfix">
<input type="password" name="" id="pwd" placeholder="wachtwoord">
</li>
<li class="clearfix">
<input type="submit" value="Inloggen" id="llogin" style="font-size: 14px; " onclick="login();" name="">
</li>
<li>
<a href="reset-pass.html" id="linkfp" style="font-size: 16px;"><u>Wachtwoord vergeten?</u></a>
</li>
<li id="test">
</li>
</ul>
</div>
</section>
</div>
</div>
</body>
CSS
#login-back
{
background:url(../img/bg.jpg)no-repeat fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: 100% 100%;
height: 100%;
}
source
share