给tr整行加删除线的技巧

给tr行,整行加删除线的html,用得着的,拿走。关键代码,有下划线部分

< div  style ="width: 550px; height: 100px; border:solid 1px orange;overflow:scroll" >
< table  cellpadding ="0"  cellspacing ="1"  style ="background-color:black;width: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;width:100px;">
             
<div style="position: relative; ">
                
<input type="checkbox" />
                
<div style="width: 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

你可能感兴趣的:(删除)