开发者

disabling table border in a column wise

I want to disable border in a table by selecting a column, i dont want to see 开发者_Go百科any border on the first row and first column of my table.

<table>
   <tr>
      <td style="border-left:0; border-left-color:white; border-top: none;">
      </td>
      <td colspan="2">
         Header text
      </td>
   </tr>
   <tr>
      <td>
        One
      </td>
      <td>
           One 1
      </td>
      <td>
           One 2
      </td>
   </tr>
   <tr>
      <td>
          Two
      </td>
      <td>
           Two 1
      </td>
      <td>
            Two 2
      </td>
   </tr>
</table>

On the above table i use the inline css to do that but i get the border grayed out not blank, i dont want to see the gray border.

Any Help.


This solved my problems

table td, table th { border: 1px solid black;

} table{ border-collapse: collapse; }

while googling out, i found some related staff in here

CSS - Border only inside the table

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜