用jQuery合并表格中左侧表头同列相同文本的相邻单元格(Merge the adjacent cells in the table with the same text in the left header of the table. JQuery).doc

用jQuery合并表格中左侧表头同列相同文本的相邻单元格(Merge the adjacent cells in the table with the same text in the left header of the table. JQuery).doc

  1. 1、本文档共14页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
用jQuery合并表格中左侧表头同列相同文本的相邻单元格(Merge the adjacent cells in the table with the same text in the left header of the table. JQuery)

用jQuery合并表格中左侧表头同列相同文本的相邻单元格(Merge the adjacent cells in the table with the same text in the left header of the table. JQuery) <div class=数据 表ID = spdata style=“border-right:# cad9ea 1px solid;table-layout:固定;硬盘市场关注调查:# cad9ea 1px solid;保证金:汽车;border-left:# cad9ea 1px solid;border-bottom:# cad9ea 1px solid;border-collapse:崩溃;空细胞:秀” 边框= 1 默认 西班= tcolleft /胶原 西班= tcolcenter跨度= 2 /胶原 西班= tcolleft /胶原 西班= tcolcenter /胶原 西班= tcolleft /胶原 西班= tcolcenter /胶原 西班= tcolleft /胶原 西班= tcolleft跨度= 2 /胶原 西班= tcolcenter /默认/胶原 螺纹式=“background-color:# cfe4f5” /tr 世纪风格=“宽度:4%”序号 /日 世纪风格=“宽度:5%”地区 /日 世纪风格=“宽度:5%”地区 /日 世纪风格=“宽度:12%”商品代码 /日 世纪风格=“宽度:12%”商品名称 /日 世纪风格=“宽度:6%”数量 /日 世纪风格=“宽度:10%”有效期至 /日 世纪风格=“宽度:14%”距效期(月) /日 世纪风格=“宽度:10%”产品批号 /日 世纪风格=“宽度:6%”规格 /日 世纪风格=“宽度:6%”单位 /日 世纪风格=“宽度:10%” 条形码/日/ TR /线 tbody /tr 1 9 广东TD行= / TD 3 深圳TD行= / TD 3 00028 TD的行= / TD 3 红花油TD行= / TD /tr 2 /tr 3 /tr 4 2 广州TD行= / TD 00027 / TD白花油TD /tr 5 00028 / TD红花油TD /tr 6 4 深圳TD行= / TD 4 00028 TD的行= / TD 4 红花油TD行= / TD /tr 7 /tr 8 /tr 9 td nbsp; / td td nbsp; / td td nbsp; / td td nbsp; / td td nbsp; / td td nbsp; / td td nbsp; / td / TR / tbody / Table / div 1、在html的head中引入jquery script language = JavaScript type = text / JavaScript SRC = JS / jquery-1.3.js script / 2、添加合并单元格的函数 / / 函数说明: 合并指定表格 (表格id为 _ w _ table _ ID) 指定列 (行数大于 _ w _ table _ mincolnum 小于 _ w _ table _ 相同列中的相同文本的相邻单元格 maxcolnum) / / 多于一列时, 后一列的单元格合并范围不能超过前一列的合并范围.避免出现交错. / / 参数说明: _ w _ table _ ID 为需要进行合并单元格的表格id.如在html中指定表格 id = date, 此参数应为 # date / / 参数说明: _ w _ table _ mincolnum 为需要进行比较合并的起始列数.为数字, 则从最左边第一行为1开始算起. / / 此参数可以为空, 为空则第一列为起始列. / / 需要注意, 如果第一列为序号列, 则需要排除此列. / / 参数说明: _ w _ table _ maxcolnum 为需要进行比较合并的最大列数, 列数大于这个数值的单元格将不进行比较合并. / / 为数字, 从最左边第一列为1开始算起. / / 此参数可以为空, 为空则同 _ w _ table _ mincolnum. Functi

您可能关注的文档

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档