0

我用虚线分隔表格的两行,如下所示。

<table cellspacing="0">
    <tr>
        <td>Issue</td>                               
        <td>Date</td>
    </tr>  
    <td style="border-bottom: 1px dotted red;padding-top:2px;width:800px;"></td>
    <tr>
        <td>Theres is a issue with the code</td>
        <td>09-28-2012</td></tr>
</table>

这是提琴手版本。我想将该日期在线对齐而不是最后。我怎样才能做到这一点。

4

3 回答 3

2

添加colspan = "2"td有虚线的那个。colspanrowspan分别定义单元格跨越的列数或行数。

这是您演示的修改版本:little link

于 2012-09-29T06:40:53.617 回答
1
<table cellspacing="0">
 <tr>
    <td>Issue</td>                               
    <td >Date</td>
 </tr>  
 <tr>
   <td class="td"></td>
   <td class="td"></td>
 <tr>    
 <tr>
    <td>Theres is a issue with the code</td>
    <td>09-28-2012</td>
 </tr>
</table>​

CSS:

.td{
   border-bottom: 1px dotted red;width:800px;padding-top:2px;
   }

演示

于 2012-09-29T06:38:55.100 回答
1

请试试这个:

 <table cellspacing="0">
        <tr>
            <td>Issue</td>                               
            <td>Date</td>
        </tr>  
        <tr style="border-bottom: 1px dotted red;padding-top:2px;width:800px;"><td></td><td ></td></tr>
        <tr>
            <td>Theres is a issue with the code</td>
            <td>09-28-2012</td></tr>
    </table>
于 2012-09-29T06:44:00.787 回答