如何删除表和<hr />之间的空格?

时间:2013-06-29 06:41:18

标签: html css

在html中,我有一个表,然后是hr标签。桌子和水平线之间有间隙。我怎样才能消除这个差距?

以下是示例代码 -

<html>
<head>
    <title>test</title>
</head>
<body >
<table border="1" width="100%" >
<tr>
    <td rowspan="2" align="left">a</td>
    <td align="right">c</td>
</tr>
    <tr>
    <td align="right">d</td>
</tr>
</table>
<hr width="100%">
</body>
</html>

谢谢, Kartic

1 个答案:

答案 0 :(得分:4)

试试这个'

<hr width="100%" style="margin-top:0;">
相关问题