0

Is it required to use bootbox.alert("message",function(){example.show("another message")};or bootbox.prompt/confirm to use show? Also is there a way to change the position of where show displays? By default it displays close to the bottom right.

4

1 回答 1

1

如果我是正确的, show 只是为了让 Example 对象显示自己(jquery show)。如果是这种情况,则不需要使用 bootbox 方法来使用 show,因为它是 jquery 中的一种方法。至于是否显示Example对象的位置,肯定是可以的。我不确定,但一种方法可能是编写自定义 CSS。当我检查“表演”的风格时,出现了这样的情况:

.bb-alert {
position: fixed;
bottom: 25%;
right: 0;
margin-bottom: 0;
font-size: 1.2em;
padding: 1em 1.3em;
z-index: 2000;
}

您可以通过更改 CSS 中的“底部”或“右侧”元素来更改示例对象的位置。

于 2014-02-26T16:48:44.790 回答