用jQuery合并表格中左侧表头同列相同文本的相邻单元格(Merge the adjacent cells in the table with the same text in the left header of the table. JQuery).doc
- 1、本文档共14页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 学,然后知不足——《学哲学用哲学》读后感(To learn, and then lack of knowledge -- philosophy of philosophy.).doc
- 学习Mc该注意的事项和曲风选择及风格(Learning style and style issues and the attention Mc).doc
- 学习Perl(学习Perl).doc
- 学习《教师法》、《未成年人保护法》、《义务教育法》的心得体会(Learn the Teacher Law, minor protection law and Compulsory Education Law experience).doc
- 学习室内设计必看的AutoCAD教程【精校版】(Learning interior design must see the AutoCAD tutorial [refined school version]).doc
- 学习动机、学习迁移与学习策略(Learning motivation, learning transfer and learning strategies).doc
- 学习小组文化墙设计(Learning group cultural wall design).doc
- 学习十七届三中全会精神入党思想汇报(Learn the spirit of the third Plenary Session of the 17th CPC Central Committee and report to the party).doc
- 学习散文(Study prose).doc
- 学习编程(Learning programming).doc
最近下载
- SOP-QC-INS-318 6-APA车间反萃取重相检验标准操作规程.doc
- 医院预约挂号管理系统的设计与实现 颜坤.doc VIP
- Unit 5 About Me lesson 1 Let's make a robot!(课件)冀教版(三起)(2024)英语三年级上册.pptx
- HIKVISION海康威视4线电子围栏主机DS-PF-E0204N 4线脉冲电子围栏双防区主机.pdf
- 高中英语教学:The Chinese Writing System.docx
- 2024年【党纪学习教育】党纪学习教育党课讲稿3篇(范本).docx VIP
- 药理学练习试题(附含答案解析).pdf VIP
- 党纪学习教育纪律党课讲稿.docx VIP
- 2024国开《会计学概论》形考任务及答案.docx VIP
- 拓展训练重点项目孤岛求生游戏指导规则与分享.doc
文档评论(0)