【问题标题】:Jquery noty, right top position, display new messages higher (a.k.a LIFO)Jquery noty,右上角,显示新消息更高(a.k.a LIFO)
【发布时间】:2015-10-09 05:11:51
【问题描述】:

客户端应用订阅了来自服务器的消息。我使用jquery noty plugin 来可视化它们。片段是:

noty({
    text: 'Message text',
    layout: "topRight"
});

消息以FIFO 的顺序显示在右上角,但我需要LIFO。

我觉得有解决问题的css技巧,但是有人知道正确的方法吗?

【问题讨论】:

    标签: javascript jquery jquery-plugins noty


    【解决方案1】:

    无前缀的css技巧是

    ul[id^='noty_'] { 
        display: flex; 
        flex-direction: column-reverse; 
    }
    ul[id^='noty_'] > li { 
        flex: 0 0 auto; 
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多