【问题标题】:Set column width of table设置表格的列宽
【发布时间】:2020-04-02 09:30:27
【问题描述】:

我在我的项目中使用 Bootstrap 3.7,我想创建一个表,其第一行具有预定义的宽度。

我尝试使用 style="width:100px" 如下所示:

<thead>
    <tr id="header">
        <th data-width="100px"></th>
    </tr>
</thead>

【问题讨论】:

  • 你在描述和代码中写的完全不同。

标签: html twitter-bootstrap twitter-bootstrap-3


【解决方案1】:

代码的样式属性应该为

<th style="width: 100px;"></th>

或

<th width="100px"></th>

【讨论】:

    猜你喜欢
    • 2010-10-30
    • 2012-08-13
    • 1970-01-01
    • 1970-01-01
    • 2012-01-07
    • 2015-10-02
    • 2018-12-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多