📜  ion toast 更改按钮颜色 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:58.507000             🧑  作者: Mango

代码示例1
// use Shadow Parts
// https://ionicframework.com/docs/api/toast#css-shadow-parts

ion-toast::part(button) { 
    color: black;
    background: red;
    border-radius: 14px;
}

button:        Any button element that is displayed inside of the toast.
container:     The element that wraps all child elements.
header:     The header text of the toast.
message:     The body text of the toast.