Bootstrap Table 如何像下面一样额外添加一行标题?

Bootstrap Table 如何像下面一样额外添加一行标题?,第1张

<table class="cusTable">

<thead>

<tr>

<th data-colspan="50" data-align="center">就业情况</th>

</tr>

<tr>

<th data-colspan="5" data-align="center">就业</th>

<th data-colspan="5" data-align="center">就业</th>

<th data-colspan="5" data-align="center">就业</th>

</tr>

<tr>

<th data-field="ceshi">1</th>

<th data-field="ceshi">2</th>

<th data-field="ceshi">2</th>

<th data-field="ceshi">2</th>

<th data-field="ceshi">2</th>

<th data-field="ceshi">水平</th>

<th data-field="ceshi">水平</th>

<th data-field="ceshi">水平</th>

<th data-field="ceshi">水平</th>

<th data-field="ceshi">水平</th>

<th data-field="ceshi">测试</th>

<th data-field="ceshi">测试</th>

<th data-field="ceshi">测试</th>

<th data-field="ceshi">测试</th>

<th data-field="ceshi">测试</th>

</tr>

</thead>

</table>

引入bootstrap的js做出来是这样的,

<table class='tbl'>

<thead><tr><td>表头</td></tr></thead>

<tr><td>普通</td></tr>

</table>

thead标签并没有特殊作用,

只是你在控制样式的时候,这样子好控制。

.tbl thead tr td{color:red}

.tbl tr td{color:green}

1、首先打开latex软件,准备 *** 作设置并进入到编辑窗口。

2、接着在工具栏找到输入表格的图标,点击d出插入表格的下拉菜单。

3、然后在下拉菜单中选择”Tabular“,输入表格数据,创建一个常用的表格。

4、接着使用命令\title{...}, \author{...}来为新创建的表格插入标题和作者。

5、编译后即可看到tabular创建的表格,已经加入了标题。


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/bake/11262997.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-14
下一篇 2023-05-14

发表评论

登录后才能评论

评论列表(0条)

保存