我正在使用 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";
最佳答案
如果你想要一个btn-group
你可以使用 <div class="btn-group-vertical"></div>
把你的按钮放在那里。
关于javascript - 如何在javascript bootstrap中将按钮放置在另一个按钮之下,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23431627/