|
键盘与页面之间出现了空白区域,求清除
[复制链接]
- <template name='tpl'>
- <scroll-view class="page" scroll-y="true">
- <view class="header">
- <text class="page-title">登录账号</text>
- <text class="page-title-sub">停车服务管理系统</text>
- </view>
- <form action="" method="post">
- <view class="form-item">
- <image src="../image/username.png" class="form-item-image"></image>
- <input type="text" placeholder="用户名">
- </view>
- <view class="form-item">
- <image src="../image/password.png" class="form-item-image"></image>
- <input type="password" placeholder="密码">
- </view>
- <button type="submit">登录</button>
- </form>
- </scroll-view>
- </template>
- <script>
- export default {
- name: 'tpl',
- apiready(){//like created
- },
- data() {
- return{
- }
- },
- methods: {
- }
- }
- </script>
- <style>
- .page {
- height:100%;
- background-color: rgba(116, 168, 248, 1);
- background-image:url(../image/login_bg.png);
- background-size:100%;
- background-position: top center;
- }
- .header{
- margin-top:20px;
- padding:32px 0 0 25px;
- }
- .page-title{
- color:#ffffff;
- font-size:28px;
- font-weight: bold;
- }
- .page-title-sub{
- color:#ffffff;
- font-size:23px;
- }
- form{
- margin:200px 10px 10px;
- background-color:#ffffff;
- padding:40px 30px;
- border-radius: 20px;
- }
- .form-item{
- flex-direction: row;
- align-items: center;
- margin-top:20px;
- }
- .form-item-image{
- width:20px;
- height:20px;
- }
- input{
- width:80%;
- border:none;
- margin-left:10px;
- }
- button{
- color:#ffffff;
- height:45px;
- border-radius: 22px;
- background-image: linear-gradient(to bottom,#74a8f8,#3d6afb);
- margin-top:20px;
- }
-
- </style>
复制代码 弹出键盘时,键盘与页面之间出现了空白区域,不知道怎么消除,求解。
|
-
|