给tr行,整行加删除线的html,用得着的,拿走。关键代码,有下划线部分
<div style=" 550px; height: 100px; border:solid 1px orange;overflow:scroll">
<table cellpadding="0" cellspacing="1" style="background-color:black;500px">
<tbody>
<tr>
<td style="background-color:white"><input type="checkbox" /></td>
<td style="background-color:white">cccc</td>
<td style="background-color:white">cccc</td>
</tr>
<tr>
<td style="background-color:white; overflow:visible;100px;">
<div style="position: relative; ">
<input type="checkbox" />
<div style=" 500px; position: absolute; top: 9px;border-bottom:solid 1px #000 ">
</div>
</div>
</td>
<td style="background-color:white">cccc</td>
<td style="background-color:white">cccc</td>
</tr>
<tr>
<td style="background-color:white"><input type="checkbox" /></td>
<td style="background-color:white">cccc</td>
<td style="background-color:white">cccc</td>
</tr>
<tr>
<td style="background-color:white"><input type="checkbox" /></td>
<td style="background-color:white">cccc</td>
<td style="background-color:white">cccc</td>
</tr>
<tr>
<td style="background-color:white"><input type="checkbox" /></td>
<td style="background-color:white">cccc</td>
<td style="background-color:white">cccc</td>
</tr>
</tbody>
</table>
<table cellpadding="0" cellspacing="1" style="background-color:black;500px">
<tbody>
<tr>
<td style="background-color:white"><input type="checkbox" /></td>
<td style="background-color:white">cccc</td>
<td style="background-color:white">cccc</td>
</tr>
<tr>
<td style="background-color:white; overflow:visible;100px;">
<div style="position: relative; ">
<input type="checkbox" />
<div style=" 500px; position: absolute; top: 9px;border-bottom:solid 1px #000 ">
</div>
</div>
</td>
<td style="background-color:white">cccc</td>
<td style="background-color:white">cccc</td>
</tr>
<tr>
<td style="background-color:white"><input type="checkbox" /></td>
<td style="background-color:white">cccc</td>
<td style="background-color:white">cccc</td>
</tr>
<tr>
<td style="background-color:white"><input type="checkbox" /></td>
<td style="background-color:white">cccc</td>
<td style="background-color:white">cccc</td>
</tr>
<tr>
<td style="background-color:white"><input type="checkbox" /></td>
<td style="background-color:white">cccc</td>
<td style="background-color:white">cccc</td>
</tr>
</tbody>
</table>
</div>
cccc | cccc | |
|
cccc | cccc |
cccc | cccc | |
cccc | cccc | |
cccc | cccc |