要素の内容。
text
before
after
first-letter
marker
HTML :
<h1>Loomings</h1>
CSS :
h1::before { content: 'Chapter ' counter(chapter); } h1 { string-set: header content(before) ':' content(text); } h1::after { content: '.'; }
有名文字列 header の値は、 "Chapter 1: loomings" になる。
表示内容: |
表示内容: |