如何在ionic v4的item-native div中编辑“ item-inner”类?

时间:2019-01-28 11:06:36

标签: html css angular ionic-framework ionic4

我必须删除.item-native内部.item-inner类中累加的多余填充。 https://ibb.co/vs4BWWp

<div class="item-native">
<slot name="start">
</slot>
<div class="item-inner">
<div class="input-wrapper">
<slot></slot>
</div><slot name="end"></slot>
<div class="item-inner-highlight"></div></div>
</div>

3 个答案:

答案 0 :(得分:2)

ion-item{
    --inner-padding-end: 0px;
    --padding-start:0px
}

答案 1 :(得分:1)

.item-native .item-inner{padding:0}。这将删除该元素的填充

答案 2 :(得分:0)

this并使用class item-inner删除该元素的填充:

.item-inner{
 padding:0 !important;
}