Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.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
Css 离子2-离子卷轴不';t拾取内容高度_Css_Angularjs_Ionic Framework_Ionic2 - Fatal编程技术网

Css 离子2-离子卷轴不';t拾取内容高度

Css 离子2-离子卷轴不';t拾取内容高度,css,angularjs,ionic-framework,ionic2,Css,Angularjs,Ionic Framework,Ionic2,在我的应用程序中,我有一个面板,单击按钮即可显示/隐藏。此面板的最大高度为300px 面板内的内容将被添加/删除,面板应调整其高度以适合内容。由于我希望能够滚动此面板内的内容,因此我使用了离子滚动 问题是,ion滚动条似乎没有占据其内容的高度。我必须在“px”中特别设置一个高度,以显示它的内容。有人知道我能做什么吗 注意:以百分比表示的离子滚动高度也不起作用 这是我的HTML的结构 <ion-content> <div style="position: fixed; bott

在我的应用程序中,我有一个面板,单击按钮即可显示/隐藏。此面板的最大高度为300px

面板内的内容将被添加/删除,面板应调整其高度以适合内容。由于我希望能够滚动此面板内的内容,因此我使用了
离子滚动

问题是,
ion滚动条
似乎没有占据其内容的高度。我必须在“px”中特别设置一个高度,以显示它的内容。有人知道我能做什么吗

注意:以百分比表示的
离子滚动高度也不起作用

这是我的HTML的结构

<ion-content>
 <div style="position: fixed; bottom: 0; width: 100%; z-index: 1; max-height: 300px;" *ngIf="showPanel">
  <ion-scroll>Scroll content goes here.</ion-scroll>
 </div>
</ion-content>

滚动内容到这里。
我用的是离子2-β10。

试试看试试看