mui toast自定义样式

来源:互联网 发布:自动化测试python 编辑:程序博客网 时间:2024/05/29 13:55

css中重写此样式:

.mui-toast-container {    bottom: 20% !important;/*离布局底部的距离*/    }.mui-toast-message {    background: url(../img/indicator_input_error.png) no-repeat center 10px #000;   /*toast的背景图片*/    opacity: 0.7;/*toast中背景色的透明度*/        color: #FFFFFF; /*toast中字体颜色*/    width: 180px; /*toast宽度*/    padding: 50px 5px 10px 5px;/*toast中文字的位置*/}
0 0