CSS content 屬性 CSS counter-increment 屬性 CSS counter-reset 屬性

利用該三個屬性可以構建列表前面的標籤 在分爲h1爲標題1,h2爲標題2 content 可以利用before爲標籤爲標題前面添加內容 counter-increment 可以使得h1和h2標題每用一次就實現一次增加 counter-reset可以使得h1標籤每次調用的時候講子標題序號重置   <style> body {counter-reset:section;} h1 {counter-res
相關文章
相關標籤/搜索