我正在尝试使用 一个接一个地显示 2 个通知Pnotify
,但我遇到了一个问题:第二个通知始终与第一个通知具有相同的高度。因此,如果第二个通知大于第一个通知,则它不适合通知容器:
这是一些测试的小提琴(我不确定你是否能够因为外部资源而运行它):https ://jsfiddle.net/Alarid/y8b8pdcj/1/
代码 :
new PNotify({
title: 'Information',
text: "Lorem ipsum dolor sit amet",
type: 'warning',
nonblock: {
nonblock: true,
nonblock_opacity: .2
},
styling: "bootstrap3",
delay: 3000,
addclass: "stack-bottomright",
});
new PNotify({
title: 'Information',
text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sed erat eget odio auctor rutrum. Morbi non est eu risus pharetra varius. Morbi lorem neque",
type: 'success',
nonblock: {
nonblock: true,
nonblock_opacity: .2
},
styling: "bootstrap3",
delay: 3000,
addclass: "stack-bottomright",
});