參數(shù) | 說明 | 說明 |
---|---|---|
duration | 持續(xù)顯示時(shí)間,默認(rèn)值 short(2000ms) | 支持 整數(shù)值 和 String ,String可選:long(3500ms),short(2000ms) |
type | 強(qiáng)制使用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中文字的位置*/
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!