Bootstrap 3表列的宽度相同

时间:2017-08-03 08:33:42

标签: html css twitter-bootstrap

我正在尝试为所有列提供相同的宽度, Bootstrap有适当的方法吗?

                <a href="produkte.html">
                    <div class="panel-body">
                        <table class="table">
                            <tbody>
                            <tr>
                                <th></th>
                                <th>#</th>
                                <th> # analog Eingänge</th>
                                <th> # I/Os</th>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </a>

enter image description here

2 个答案:

答案 0 :(得分:4)

您必须将此样式设置为表格

table {
    table-layout: fixed;
}

答案 1 :(得分:2)

为什么不使用单元格和/或行? 如果您不知道,那么添加此代码(也学习它,它可能很有用)

table {
    table-layout: fixed;
}