首页htmltdHTML Element Style - 如何为表单元格设置预定义的文本内容

HTML Element Style - 如何为表单元格设置预定义的文本内容

我们想知道如何为表单元格设置预定义的文本内容。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
td.orange:before {
  background: #DD5F15;
  content: "TRIPLE";
}
</style>
</head>
<body>
  <table>
    <tr>
      <td>First Col</td>
      <td class="orange"></td>
    </tr>
  </table>
</body>
</html>