1
我想在一個表中自動編號線,我利用工作:自動遞增表中的一個計數器
/* Set the Serial counter to 0 */
{ counter-reset: Serial; }
/* Set the serial number counter to 0 */
.css-serial {
counter-reset: serial-number; }
/* Increment the serial number counter */
.css-serial td:first-child:before {
counter-increment: serial-number;
/* Display the counter */
content: counter(serial-number); }
<a href="http://www.phoenixcomm.net/~harrison/tmp/questions/Code1.207-05-16.html">My table code</a><br>
<img src="https://i.stack.imgur.com/NNL2n.png"></a><br>
這就像一個冠軍,但我有一個小問題,當它到達我的一個分隔符。如項目#7,#10所示。我怎樣才能阻止它編號分隔符?
<tr><_td colspan=2><HR 30%></td></tr>
請張貼更多的代碼,具體的標記。不幸的是,我們無法用照片做很多事情。 – trav