bootstraptable设置某一列的宽度

<table id="example1"
class="table table-bordered table-striped table-responsive"
style="min-width:1000px;table-layout: fixed;word-break:break-all;">
<thead>
<tr>
<th style="width:4%;">序号</th>
<th style="width:24%;">Task ID</th>
<th style="width:45%;">参数</th>
<th>Task 名称</th>
<th>执行时间</th>
<th>状态</th>
</tr>
</thead>
<tbody>

table-layout: fixed; 固定表格宽度
word-break:break-all; 列的内容换行
<th style="width:4%;">序号</th> width:4% 设置列的宽度

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容