table 表格合并

table 表格合并

开发工具与关键技术:DW、JavaScript
作者:刘东标
撰写时间:2019-03-14

<div >
 	<div>
	<span>colspan和rowspan这两个属性用于创建特殊的表格。</span></br>
	<span>colspan用来指定单元格横向跨越的列数:colspan就是合并列的,colspan=2的话就是合并两列。</span></br>
	<span>rowspan用来指定单元格纵向跨越的行数:rowspan就是用来合并行的,比如rowspan=2就是合并两行,</span></br>
	<span>rowspan通常使用在td和th标签中</span></br>
	<span>row:行,span:跨度,跨距,范围</span></br>
	<span>col:列,span:跨度,跨距,范围</span></br>
</div>
 <table id="tb" border="1" width="100%">
	<thead>
		<tr>
			<th rowspan="2">病员</th>
			<th rowspan=2>初复诊</th>
			<th colspan=2>药品收入</th>
			<th colspan=10>医疗收入</th>
			<th rowspan="2">合计</th>
		</tr>
		<tr>
			<th hidden w_index="Year"></th>
			<th hidden w_index="Diana"></th>
			<th w_index="Count">西药</th>
			<th w_index="ContractNum">中药</th>
			<th w_index="Risk">手术费</th>
			<th w_index="This">调温费</th>
			<th w_index="Credit">化验费</th>
			<th w_index="Usable">治疗费</th>
			<th w_index="This">血费</th>
			<th w_index="This">床位费</th>
			<th w_index="This">诊差费</th>
			<th w_index="This">护理费</th>
			<th w_index="This">检查费</th>
			<th w_index="This">其他</th>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<td style="color:red;font-weight:bold" class="aggcorlor">合计 </td>
			<td class="aggcorlor"></td>
			<td class="aggcorlor" style="color:red;" w_agg="Sum,Count"></td>
			<td class="aggcorlor" style="color:red;" w_agg="Sum,ContractNum"></td>
			<td class="aggcorlor" style="color:red;" w_agg="Sum,Risk"></td>
			<td class="aggcorlor" style="color:red;" w_agg="Sum,This"></td>
			<td class="aggcorlor" style="color:red;" w_agg="Sum,Credit"></td>
			<td class="aggcorlor" style="color:red;" w_agg="Sum,Usable"></td>
			<td class="aggcorlor" style="color:red;" w_agg="Sum,Credit"></td>
			<td class="aggcorlor" style="color:red;" w_agg="Sum,This"></td>
			<td class="aggcorlor" style="color:red;" w_agg="Sum,This"></td>
			<td class="aggcorlor" style="color:red;" w_agg="Sum,This"></td>
			<td class="aggcorlor" style="color:red;" w_agg="Sum,This"></td>
			<td class="aggcorlor" style="color:red;" w_agg="Sum,This"></td>
			<td class="aggcorlor" style="color:red;" w_agg="Sum,Lixi"></td>
		</tr>
	</tfoot>
</table>
 </div>

在这里插入图片描述
在这里插入图片描述

  • 5
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值