求通用合并行的js
能够通用合并行中相同值的,表格样式是动态的,即只知道最大列数为几,例如只在页面中红色字体区域合并相同值,要合并的部分最大列为3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 " />
<title> 无标题文档 </title>
<style type= "text/css ">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</head>
<body>
<table width= "582 " border= "1 ">
<tr>
<td width= "49 "> test01 </td>
<td width= "39 "> test11 </td>
<td width= "53 "> test12 </td>
<td width= "53 " rowspan= "3 "> a </td>
<td colspan= "6 "> b </td>
</tr>
<tr>
<td> test10 </td>
<td> test12 </td>
<td> test13 </td>
<td colspan= "3 "> </td>
<td width= "53 " rowspan= "2 "> 2 </td>
<td width= "53 " rowspan= "2 "> 4 </td>
<td width= "59 " rowspan= "2 "> 5 </td>
</tr>
<tr>
<td> test20 </td>
<td> test21 </td>
<td> test23 </td>
<td width= "53 "> 1 </td>
<td width= "53 "> 2 </td>
<td width= "53 "> 3 </td>
</tr>
<tr>
<td rowspan= "12 "> <span class= "STYLE1 "> 资产相关费 <br />
用 </span> </td>
<td rowspan= "2 "> <span class= "STYLE1 "> 折旧 </span> </td>
<td> <span class= "STYLE1 "> 1 </span> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
&nbs