Remove ion item divider

后端 未结 8 1688
长情又很酷
长情又很酷 2020-12-28 13:34

How I can remove divider? I have the following code to show 4 items in a row:


    

        
相关标签:
8条回答
  • 2020-12-28 14:14

    use (lines="none") in your ion-item

    0 讨论(0)
  • 2020-12-28 14:17

    If you want to disable the lines / borders globally on all of your <ion-item>'s, just add the following code to your src/global.scss (default when generating a Ionic v4 App with Angular) of your application.

    ion-item {
    
        --border-width: 0;
        --inner-border-width: 0;
    }
    

    The attribute lines="none" on a <ion-item> does nothing other.

    Hope it helps someone.

    Cheers Unkn0wn0x

    0 讨论(0)
提交回复
热议问题