离子滚动显示滚动条

时间:2018-06-09 01:07:44

标签: html css ionic-framework ionic3

我试图隐藏我ion-scroll上的滚动条我尝试过所有内容但无法让它消失。有人可以帮我这个吗?我已经尝试了所有属性,我也使用了::-webkit-scrollbar之类的css并将其设置为display: none;。它隐藏在浏览器中就好了但是当我在模拟器或我的物理iPhone上看它时它仍然显示。这是我的ion-scroll

<ion-scroll scrollX="true" scrollbar-x="false" id="contests-filter">
  <ion-row nowrap class="app-padding">
    <div *ngFor="let name of filterNames;">
      <ion-chip>
        <ion-label>{{ name }}</ion-label>
      </ion-chip>
    </div>
  </ion-row>
</ion-scroll>

1 个答案:

答案 0 :(得分:0)

尝试在CSS中添加[overflow-y:auto;]或[overflow-x:hidden]。

相关问题