【问题标题】:How to remove the background-activated on ion-datetime?如何删除离子日期时间的背景激活?
【发布时间】:2020-07-20 20:35:17
【问题描述】:

.item-datetime |离子日期时间

当您单击 ion-datetime 标签时,它会对父 ion-item 标签产生背景效果(不适用于 !important)。

.item-datetime {
    --ion-item-background-activated: transparent;
    --ion-item-background: transparent;
    --ion-item-background-focused: transparent;
    --ion-item-background-hover: transparent;

    --ion-item-background-activated: transparent;
    --background: transparent;
    --background-activated: transparent;
    --background-focused: transparent;
    --background-hover: transparent;
    background: transparent;

    --background-activated-opacity: 0;
    --background-focused-opacity: 0;
    --background-hover-opacity: 0;
    --transition: none;
}

【问题讨论】:

    标签: css ionic-framework sass less


    【解决方案1】:

    试试这个去除背景效果

    --ripple-color: transparent;
    --background-hover: transparent;
    

    【讨论】:

    • --ripple-color 正在处理 ion-item(对 ion-datetime 的影响)。谢谢。
    猜你喜欢
    • 2019-09-01
    • 2018-05-30
    • 2013-05-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多