參數 | 說明 | 說明 |
---|---|---|
duration | 持續顯示時間,默認值 short(2000ms) | 支持 整數值 和 String ,String可選:long(3500ms),short(2000ms) |
type | 強制使用mui消息框(div模式) | ‘div’ |
mui.toast('加載中...',{ duration:'long', type:'div' });
css文件如下:
.mui-toast-container {
bottom: 40% !important;/*離布局底部的距離*/
}
.mui-toast-message {
background: url(../img/loading.png) no-repeat center 10px #000; /*toast的背景圖片*/
opacity: 0.7;/*toast中背景色的透明度*/
color: #FF0000; /*toast中字體顏色*/
width: 180px; /*toast寬度*/
padding: 50px 5px 10px 5px;/*toast中文字的位置*/
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!