设置烤面包机的不透明度? [英] Setting toastr opacity?

查看:79
本文介绍了设置烤面包机的不透明度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法可以改变它?我尝试将toastClass定义为不透明度设置为1的类,但未发现任何变化:

Is there any way to change it? I tried defining the toastClass as a class with opacity set to 1, but saw no changes:

.toast-style{
   opacity: 1;
}

toastr.options.toastClass = 'toast-style';

推荐答案

不需要JavaScript.您应该可以使用

No JavaScript required for this. You should be able to change this in CSS using either

#toast-container > div {
    opacity:1;
}

.toast {
    opacity: 1 !important;
}

这篇关于设置烤面包机的不透明度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆