帖子
帖子
用户
博客
课程
12下一页
返回列表 发新帖
显示全部楼层
7
帖子
0
勋章
41
Y币
发表于 2021-2-24 19:46:00
2
未解决

键盘与页面之间出现了空白区域,求清除 [复制链接]

  • 发表于:2021-02-24 19:46:00
  1. <template name='tpl'>
  2.     <scroll-view class="page" scroll-y="true">
  3.         <view class="header">
  4.             <text class="page-title">登录账号</text>
  5.             <text class="page-title-sub">停车服务管理系统</text>
  6.         </view>
  7.         <form action="" method="post">
  8.             <view class="form-item">
  9.                 <image src="../image/username.png" class="form-item-image"></image>
  10.                 <input type="text" placeholder="用户名">
  11.             </view>
  12.             <view class="form-item">
  13.                 <image src="../image/password.png" class="form-item-image"></image>
  14.                 <input type="password" placeholder="密码">
  15.             </view>
  16.             <button type="submit">登录</button>
  17.         </form>
  18.     </scroll-view>
  19. </template>
  20. <script>
  21.     export default {
  22.         name: 'tpl',
  23.         apiready(){//like created

  24.         },
  25.         data() {
  26.             return{

  27.             }
  28.         },
  29.         methods: {

  30.         }
  31.     }
  32. </script>
  33. <style>
  34.     .page {
  35.         height:100%;
  36.         background-color: rgba(116, 168, 248, 1);
  37.         background-image:url(../image/login_bg.png);
  38.         background-size:100%;
  39.         background-position: top center;
  40.     }
  41.     .header{
  42.         margin-top:20px;
  43.         padding:32px 0 0 25px;
  44.     }
  45.     .page-title{
  46.         color:#ffffff;
  47.         font-size:28px;
  48.         font-weight: bold;
  49.     }
  50.     .page-title-sub{
  51.         color:#ffffff;
  52.         font-size:23px;
  53.     }
  54.     form{
  55.         margin:200px 10px 10px;
  56.         background-color:#ffffff;
  57.         padding:40px 30px;
  58.         border-radius: 20px;
  59.     }
  60.     .form-item{
  61.         flex-direction: row;
  62.         align-items: center;
  63.         margin-top:20px;

  64.     }
  65.     .form-item-image{
  66.         width:20px;
  67.         height:20px;
  68.     }
  69.     input{
  70.         width:80%;
  71.         border:none;
  72.         margin-left:10px;
  73.     }
  74.     button{
  75.         color:#ffffff;
  76.         height:45px;
  77.         border-radius: 22px;
  78.         background-image: linear-gradient(to bottom,#74a8f8,#3d6afb);
  79.         margin-top:20px;
  80.     }
  81.    
  82. </style>
复制代码
弹出键盘时,键盘与页面之间出现了空白区域,不知道怎么消除,求解。


e9c7e2096ef9f26532f89371faf7503c.jpg
380
帖子
4
勋章
6
Y币
<preference name="softInputMode" value="pan"/>
config.xml 配置这一项,提交代码重新编译
7
帖子
0
勋章
41
Y币
技术支持-F 发表于 2021-2-24 22:00
config.xml 配置这一项,提交代码重新编译

修改后无效,还是老样子。
380
帖子
4
勋章
6
Y币
池中金麟 发表于 2021-2-25 16:45
修改后无效,还是老样子。

已反馈给相关技术查看
20
帖子
1
勋章
7581
Y币
是每个手机上都这样吗,还是个别手机上?
7
帖子
0
勋章
41
Y币
本帖最后由 池中金麟 于 2021-3-1 09:21 编辑
常山赵子云 发表于 2021-2-27 17:49
是每个手机上都这样吗,还是个别手机上?

用的官方的apploader测试的。手机是 HUAWEI MATE 9  安卓版本是 9。EMUI 是9.1.0。刚点开密码输入框的时候会有,一旦点击键盘,输入任意一个字符,就会自动恢复正常。
380
帖子
4
勋章
6
Y币
还在排查
7
帖子
0
勋章
41
Y币

好的,麻烦你们了。
20
帖子
1
勋章
7581
Y币
池中金麟 发表于 2021-3-4 08:54
好的,麻烦你们了。

这个看起来像是华为安全键盘弹出的空白块,试试看设置一下输入法关闭安全输入或者看看别的手机/输入法会复现么?
7
帖子
0
勋章
41
Y币
常山赵子云 发表于 2021-3-9 18:14
这个看起来像是华为安全键盘弹出的空白块,试试看设置一下输入法关闭安全输入或者看看别的手机/输入法会 ...

好我试试
12下一页
您需要登录后才可以回帖 登录

本版积分规则