gpt4 book ai didi

javascript - Noty.js - 设置 noty 对象的宽度

转载 作者:行者123 更新时间:2023-11-30 15:49:59 25 4
gpt4 key购买 nike

我正在尝试将通知窗口/通知的宽度更改为 800 像素,但我做不到。 This is window with default width

我添加到我的 .css 文件:

.noty-message{
width:800px;
height:800px;
}

什么都没有改变。当我尝试添加

.noty_bar {
width: 800px;
}

然后我的窗口看起来像that .如何设置 noty 对象的宽度?

最佳答案

我是你正在使用 layout: 'topRight'type: 'alert',这将强制它们为 800 像素宽:

#noty_topRight_layout_container,
#noty_topRight_layout_container > li,
#noty_bar, #noty_type_alert {
width: 800px !important;
}

如果您想为其他布局和通知类型更改它,则必须更改“topRight”和“alert”子字符串,但这种方法应该有效。

关于javascript - Noty.js - 设置 noty 对象的宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39526510/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com