如何合并单元格或在jQuery handsontable将ColSpan
1个回答
推荐于2016-03-09
展开全部
要都放在<thead>里面吧
<table class="easyui-datagrid" toolbar="#td"
data-options="collapsible:true,singleSelect:true,pagination:true,rownumbers:true,fit:true">
<thead>
<tr>
<th data-options="width:150,field:'qq'">工号</th>
<th data-options="width:170,field:'ww'">姓名</th>
<th data-options="width:170,field:'ee'">邮箱</th>
<th data-options="width:170,field:'rr'">电话号码</th>
<th data-options="width:170,field:'tt'">角色</th>
<th data-options="colspan:2,width:150,field:'firstname'">操作</th>
</tr>
<tr>
<td data-options="width:100,field:'qq'">sssss</td>
<td data-options="width:100,field:'ww'">sssss</td>
<td data-options="width:100,field:'ee'">sssss</td>
<td data-options="width:100,field:'rr'" >sssss</td>
<td data-options="width:100,field:'tt'">sssss</td>
<td data-options="width:100,field:'aa'">sssss</td>
<td data-options="width:100,field:'bb'">sssss</td>
</tr>
</thead>
</table>
<table class="easyui-datagrid" toolbar="#td"
data-options="collapsible:true,singleSelect:true,pagination:true,rownumbers:true,fit:true">
<thead>
<tr>
<th data-options="width:150,field:'qq'">工号</th>
<th data-options="width:170,field:'ww'">姓名</th>
<th data-options="width:170,field:'ee'">邮箱</th>
<th data-options="width:170,field:'rr'">电话号码</th>
<th data-options="width:170,field:'tt'">角色</th>
<th data-options="colspan:2,width:150,field:'firstname'">操作</th>
</tr>
<tr>
<td data-options="width:100,field:'qq'">sssss</td>
<td data-options="width:100,field:'ww'">sssss</td>
<td data-options="width:100,field:'ee'">sssss</td>
<td data-options="width:100,field:'rr'" >sssss</td>
<td data-options="width:100,field:'tt'">sssss</td>
<td data-options="width:100,field:'aa'">sssss</td>
<td data-options="width:100,field:'bb'">sssss</td>
</tr>
</thead>
</table>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询