Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 如何将滚动条添加到卡中_Angular_Ionic Framework_Mobile - Fatal编程技术网

Angular 如何将滚动条添加到卡中

Angular 如何将滚动条添加到卡中,angular,ionic-framework,mobile,Angular,Ionic Framework,Mobile,也许有人能帮我…我有离子卡的表格,在离子内容里面。当我在android上测试时,键盘正在向上推内容,所以在清单中我设置了android:WindowsOfInputMode=“adjustPan”现在内容没有被推,但现在我想添加滚动,因为键盘隐藏了一些内容。问题是将scrollY=“true”应用到ion内容或添加ion滚动标记没有任何效果。也许有人知道如何在显示键盘时将滚动条添加到卡中?在我的离子卡上设置以下css代码,尝试解决此问题: ion-card { max-height: 100

也许有人能帮我…我有离子卡的表格,在离子内容里面。当我在android上测试时,键盘正在向上推内容,所以在清单中我设置了android:WindowsOfInputMode=“adjustPan”现在内容没有被推,但现在我想添加滚动,因为键盘隐藏了一些内容。问题是将scrollY=“true”应用到ion内容或添加ion滚动标记没有任何效果。也许有人知道如何在显示键盘时将滚动条添加到卡中?

在我的
离子卡上设置以下css代码,尝试解决此问题:

ion-card {
  max-height: 100%;
  display: flex;
  flex-direction: column;
}
同时删除
离子卡内容
元素,并在
离子列表
上应用以下css代码:

ion-list {
  overflow: hidden;
  overflow-y: auto;
  ::-webkit-scrollbar {
    display: none;
  }
}