html - Bootstrap 3 表列宽度相同

标签 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

最佳答案

你必须为你的表格设置这个样式

table {
    table-layout: fixed;
}

关于html - Bootstrap 3 表列宽度相同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45478921/

相关文章:

javascript - 位置 :sticky : Adding style when the element detaches from normal flow

javascript - 通过模态窗口将数据从按钮传递到服务器

css - Twitter Bootstrap + JSP (Spring MVC) - 样式不适用

html - Bootstrap4-alpha - 使网格布局占大小的 100%,行占百分比

php - xampp 无法工作,当我尝试启动服务器时出现错误

javascript - 如何在 Electron 中使用文件对话框?

html - 垂直对齐 flex 元素

html - CSS 新手 TOP 问题 : Adding padding in exercise creates large gap on top of element. 添加 margin-top of 0 修复它但我不知道为什么

javascript - 使用 JavaScript 更改所选文本的字体

html - 如何修复 HTML/CSS 中的边距问题和 div 问题?