【问题标题】:Noty.js - set width of noty objectNoty.js - 设置 noty 对象的宽度
【发布时间】:2016-09-16 08:02:20
【问题描述】:

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

我添加到我的 .css 文件中:

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

没有任何改变。当我尝试添加

.noty_bar {
    width: 800px;   
}

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

【问题讨论】:

    标签: javascript css noty


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 2016-06-25
      • 2023-03-17
      • 2013-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-02
      • 1970-01-01
      相关资源
      最近更新 更多