search

Home  >  Q&A  >  body text

angular.js - ionic中ion-content里加ion-list和ion-item有自带的边距,这个要怎么去掉?

ionic中ion-content里加ion-list和ion-item有自带的边距,这个要怎么去掉?

阿神阿神2744 days ago581

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-05-15 17:13:08

    <ion-content
    [delegate-handle=""]
    [direction=""]
    [locking=""]
    [padding=""]
    [scroll=""]
    [overflow-scroll=""]
    [scrollbar-x=""]
    [scrollbar-y=""]
    [start-x=""]
    [start-y=""]
    [on-scroll=""]
    [on-scroll-complete=""]
    [has-bouncing=""]
    [scroll-event-interval=""]>
    ...
    </ion-content>
    padding
    (optional)
    boolean    
    Whether to add padding to the content. Defaults to true on iOS, false on Android.

    The above is the description of ionic official document. You only need to add padding="fasle" to the ion-content tag.

    reply
    0
  • 迷茫

    迷茫2017-05-15 17:13:08

    I directly force the use of !important to kill - -

    reply
    0
  • Cancelreply