w

td width 有无在chrome edge ff 均未影响td实际宽度,td接近等比分配table width。



<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<style>
table, tr, td {
border: 1px solid #000000;
border-spacing: 0;
}

table {
width: 160px;
}

td {
/*width: 50px;*/
height: 60px;;
}
</style>
<table>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>