【问题标题】:How to make bottom corners of header rounded in Ionic如何在 Ionic 中使标题的底角变圆
【发布时间】:2020-09-01 00:56:20
【问题描述】:

我正在尝试在下面实现这样的标题。

rounded bottom corners

这是我的解决方案,

ion-content {
    --background: #817afb; 
}

div.main {
    height: 100%;
    background-color: white;
    border-radius: 20px 20px 0px 0px;
    overflow: auto;
}
<ion-content fullscreen>
  <div class="main">
  ....
  </div>
</ion-content>

当我尝试使用 ion-refresher 和 ion-infinite-scroll 时效果不佳。谁有解决方案建议?

【问题讨论】:

    标签: html css user-interface ionic-framework ionic4


    【解决方案1】:
    ion-content {
        --background: #817afb; 
    }
    
    .main {
    
        enter code here
        height: 100%;
        width: 100%;
        background-color: white;
        border-radius: 20px 20px 0px 0px;
        overflow: auto;
        position: absolute;
        top: 40px !important;
        
    }
    

    【讨论】:

      猜你喜欢
      • 2021-07-24
      • 2017-04-12
      • 1970-01-01
      • 2020-09-17
      • 2011-06-30
      • 1970-01-01
      • 1970-01-01
      • 2016-01-26
      • 1970-01-01
      相关资源
      最近更新 更多