我已经从站点复制了确切的 PNotify 提示代码:(https://sciactive.com/pnotify/):
$("#show-pnotify").on('click', function() {
var x = new PNotify({
title: 'Password Required',
text: 'Enter Password',
icon: 'glyphicon glyphicon-lock',
styling: 'bootstrap3',
hide: true,
addclass: 'stack-modal',
confirm: {
prompt: true
},
buttons: {
closer: false,
sticker: false
},
history: {
history: false
}
})
});
它适用于他们的网站,它适用于 Fiddle ( http://jsfiddle.net/gusLfnux/2/ ),但它没有在我的 Concrete5 网站上正确显示 - 它显示带有标题和文本的提示,但没有文本输入,没有显示任何按钮。这是为什么?它适用于其他任何地方。