【问题标题】:Two buttons in one DataTable cell; one is smaller than the othr一个 DataTable 单元格中有两个按钮;一个比另一个小
【发布时间】:2019-01-15 15:12:37
【问题描述】:

我正在使用一个 DataTable,它有一列包含两个 Bootstrap 样式的按钮。由于某种原因,右侧的按钮比左侧的按钮略小。

Image of said problem

代码下方:

<div class="btn-group">
  <button type="button" class="btn btn-success btn-block mr-4" style="font-size:20px"> Hoogbouw</button>
  <button type="button" class="btn btn-danger btn-block" style="font-size:20px"> Laagbouw</button>
 </div>;

CSS:

.dataTable tbody tr {
  height: 425px; 
}
.btn-group{
  width: 100%;
  height: 100%;
}
h1{
 text-align: center; 
}

有什么问题吗?

【问题讨论】:

标签: html button bootstrap-4


【解决方案1】:

需要您提供额外的代码,您的代码看起来不错,但每个单独的按钮在格式方面是什么样的?颜色不默认为红色和绿色。

【讨论】:

    猜你喜欢
    • 2015-07-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-07
    • 1970-01-01
    • 2022-08-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多