首页htmltdHTML Element Style - 如何添加两个特定表格单元格td之间的空格

HTML Element Style - 如何添加两个特定表格单元格td之间的空格

我们想知道如何添加两个特定表格单元格td之间的空格。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
td:nth-of-type(2) {
  padding-right: 10px;
}
</style>
</head>
<body>
  <table>
    <tr>
      <td>One</td>
      <td>Two</td>
      <td>Three</td>
      <td>Four</td>
    </tr>
  </table>
</body>
</html>