使用Bootstrap-Purr进行提醒消息传递。通过使用此功能,将显示警报消息,并在几秒钟内自动消失。这不应该发生。仅在单击关闭按钮时才应关闭警报消息,直到应该查看它。
尝试Fiddle
$.bootstrapPurr('<strong>My error Mesasge </strong> ,Try Again !', {
type: 'danger',
delayPause: true,
align: 'center',
allow_dismiss: false,
allowDismissType: 'click',
draggable: false,
width:'350px',
position:'absolute',
top:'50px',
});
任何想法将不胜感激。提前谢谢。
答案 0 :(得分:2)
设置&#39;延迟&#39;属性为0,这就是它的全部工作
$.bootstrapPurr('This is another "purr" that will display until manually closed', {
type: 'danger',
align: 'left',
align: 'center',
delay: 0,
stackupSpacing: 30
});
尝试fiddle