📜  表格行索引 - Html 代码示例

📅  最后修改于: 2022-03-11 14:52:57.028000             🧑  作者: Mango

代码示例2
body{
  counter-reset: Serial;           /* Set the Serial counter to 0 */
}

table{
  border-collapse: collapse;
}

tr td:first-child:before{
  counter-increment: Serial;      /* Increment the Serial counter */
  content:counter(Serial);        /* Display the counter */
}