如何在 javascript bootstrap 中将按钮放在另一个下面

Gre*_*989 1 javascript css jquery twitter-bootstrap

我正在使用引导程序来构建我的界面。我目前有 3 个按钮,但它们排成一行。我想要发生的事情是让它们相互依存。我如何做到这一点?

这是按钮的代码:

    this.buttonOne = document.createElement("button");
    this.buttonOne .className = "btn btn-primary";
    this.buttonOne .innerHTML = "Create One";
    this.buttonTwo = document.createElement("button");
    this.buttonTwo .className = "btn btn-default";
    this.buttonTwo .innerHTML = "Create Two";
    this.buttonThree = document.createElement("button");
    this.buttonThree .className = "btn btn-default";
    this.buttonThree .innerHTML = "Create Three";
Run Code Online (Sandbox Code Playgroud)

jra*_*ede 5

如果你想要一个btn-group你可以使用<div class="btn-group-vertical"></div>并把你的按钮放在那里。