1***@qq.com
1***@qq.com
  • 发布:2018-03-07 10:17
  • 更新:2018-03-07 10:27
  • 阅读:1544

内容为什么会跳出mui-content,导致键盘出现,内容上移

分类:MUI
mui

<body>
<div class="mui-content">
<div class="head-portrait"></div>
<form>
<input type="tel" name="tel" placeholder="手机号码"/>
<input type="password" name="password" placeholder="密码"/>
</form>
</div>
</body>

body{
background-image: url(../images/login.jpg);
background-size: cover;

}
.mui-content{
background: none;
overflow: hidden;
height: 100%;
}
.ip{
position: relative;
text-align: center;
height: 80%;
}
.head-portrait{

background-image: url(../images/touxiang.jpg);  
background-size:100% 100%;  
width:33%;  
height:18%;  
border: 1px #FFFFFF solid;  
border-radius: 100%;  
position: absolute;  
top:20%;  
left: 33%;  
overflow: hidden;  

}
form{
position: absolute;
top: 40%;
text-align: center
}
input[type=tel]{
background-color: transparent;
background-image: url(../images/input.png);
background-size:100% 100%;
width: 80%;
text-align: center;
padding-top: 8%;
padding-bottom: 6%;
border: none;
}
input[type=password]{
background-color: transparent;
background-image: url(../images/input.png);
background-size:100% 100%;
text-align: center;
width: 80%;
padding-top: 8%;
padding-bottom: 6%;
border: none;
}

2018-03-07 10:17 负责人:无 分享
已邀请:
王者地带

王者地带 - 5+混合APP开发教程网 | http://www.html5-app.com | 咨询QQ: 2564034335

你应该是苹果手机吧

  • 1***@qq.com (作者)

    不是,安卓华为。

    2018-03-07 14:53

该问题目前已经被锁定, 无法添加新回复