Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 单边框桌子_Html_Css - Fatal编程技术网

Html 单边框桌子

Html 单边框桌子,html,css,Html,Css,只有一条边框线的表,在这种情况下,我有两条边框 <table width="100%" border="1"> <tr> <td width="12%">&nbsp;</td> <td width="88%">&nbsp;</td> </tr> </table> 谢谢CSS: table {border-collapse:collapse;} 添加边框折叠CSS规则: tabl

只有一条边框线的表,在这种情况下,我有两条边框

<table width="100%" border="1">
<tr>
<td width="12%">&nbsp;</td>
<td width="88%">&nbsp;</td>
</tr>
</table>

谢谢

CSS:

table {border-collapse:collapse;}

添加边框折叠CSS规则:

table {
    border-collapse:collapse;
}

在可能的情况下,您应该真正使用css进行样式设置。这里有一篇关于它的好文章

尝试将此添加到css中

 table
{
border-collapse:collapse;
}
这里就是一个例子