CARVIEW |
Select Language
HTTP/2 200
content-type: text/html
x-guploader-uploadid: AAwnv3KPbXcaXVxpzpe6iX-ibxGS4y1B4xb3CQx20nmoN2i9wKKBAP4-x2RIhbI9c1fVbMd8
cache-control: public, max-age=3600
expires: Tue, 07 Oct 2025 08:43:00 GMT
last-modified: Tue, 07 Oct 2025 01:15:29 GMT
etag: W/"fcfa1fa307f9afa0f260f5f122bbd849"
x-goog-generation: 1759799729064879
x-goog-metageneration: 1
x-goog-stored-content-encoding: identity
x-goog-stored-content-length: 268273
x-goog-meta-goog-reserved-file-mtime: 1759797522
x-goog-hash: crc32c=nbwQrw==, md5=/Pofowf5r6DyYPXxIrvYSQ==
x-goog-storage-class: STANDARD
accept-ranges: none
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
alt-svc: clear
referrer-policy: strict-origin-when-cross-origin
x-content-type-options: nosniff
strict-transport-security: max-age=63072000
content-security-policy: default-src 'self'; script-src 'report-sample' 'self' 'wasm-unsafe-eval' https://www.google-analytics.com/analytics.js https://www.googletagmanager.com/gtag/js assets.codepen.io production-assets.codepen.io https://js.stripe.com 'sha256-XNBp89FG76amD8BqrJzyflxOF9PaWPqPqvJfKZPCv7M=' 'sha256-YCNoU9DNiinACbd8n6UPyB/8vj0kXvhkOni9/06SuYw=' 'sha256-PZjP7OR6mBEtnvXIZfCZ5PuOlxoDF1LDZL8aj8c42rw='; script-src-elem 'report-sample' 'self' 'wasm-unsafe-eval' https://www.google-analytics.com/analytics.js https://www.googletagmanager.com/gtag/js assets.codepen.io production-assets.codepen.io https://js.stripe.com 'sha256-XNBp89FG76amD8BqrJzyflxOF9PaWPqPqvJfKZPCv7M=' 'sha256-YCNoU9DNiinACbd8n6UPyB/8vj0kXvhkOni9/06SuYw=' 'sha256-PZjP7OR6mBEtnvXIZfCZ5PuOlxoDF1LDZL8aj8c42rw='; style-src 'report-sample' 'self' 'unsafe-inline'; object-src 'none'; base-uri 'self'; connect-src 'self' developer.allizom.org bcd.developer.allizom.org bcd.developer.mozilla.org updates.developer.allizom.org updates.developer.mozilla.org https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com https://incoming.telemetry.mozilla.org https://observatory-api.mdn.allizom.net https://observatory-api.mdn.mozilla.net https://api.github.com/search/issues stats.g.doubleclick.net https://api.stripe.com; font-src 'self'; frame-src 'self' interactive-examples.mdn.mozilla.net interactive-examples.mdn.allizom.net mdn.github.io live-samples.mdn.mozilla.net live-samples.mdn.allizom.net *.mdnplay.dev *.mdnyalp.dev *.play.test.mdn.allizom.net https://v2.scrimba.com https://scrimba.com jsfiddle.net www.youtube-nocookie.com codepen.io survey.alchemer.com https://js.stripe.com; img-src 'self' data: *.githubusercontent.com *.googleusercontent.com *.gravatar.com mozillausercontent.com firefoxusercontent.com profile.stage.mozaws.net profile.accounts.firefox.com developer.mozilla.org mdn.dev interactive-examples.mdn.mozilla.net interactive-examples.mdn.allizom.net wikipedia.org upload.wikimedia.org https://mdn.github.io/shared-assets/ https://mdn.dev/ https://*.google-analytics.com https://*.googletagmanager.com www.gstatic.com; manifest-src 'self'; media-src 'self' archive.org videos.cdn.mozilla.net https://mdn.github.io/shared-assets/; child-src 'self'; worker-src 'self';
x-frame-options: DENY
origin-trial: AxVILwizhbMjxFeHOn1P3R8niO1RJY/smaK4B4d1rLzc1gTaxtXMSaTi+FoigYgCw40uFRDwFcEAeqDR+vVLOW4AAABfeyJvcmlnaW4iOiJodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZyIsImZlYXR1cmUiOiJQcml2YXRlQXR0cmlidXRpb25WMiIsImV4cGlyeSI6MTc0MjA3OTYwMH0=
x-cloud-trace-context: aa926f4afed0736f885e8a9569944726;o=1
date: Tue, 07 Oct 2025 07:43:01 GMT
server: Google Frontend
via: 1.1 google
vary: Accept-Encoding
content-encoding: gzip
x-cache: miss
CSS リストとカウンター - CSS: カスケーディングスタイルシート | MDN
Toggle sidebar
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
CSS リストとカウンター
CSS リストとカウンター (CSS lists and counters) モジュールにより、リストアイテムの箇条書き記号のスタイルや位置を指定したり、文字列、カウンターなどのの組み合わせによる値を操作したりすることができます。
リストアイテムのマーカー、つまり箇条書き記号や番号付きカウンターが、定義する機能です。 リストアイテムは、 <ol>
または <ul>
要素内にある <li>
要素に制限されません。 display: list-item
を設定した要素すべてを指します。
このモジュールは、 CSS でリストのカウンターを設定およびリセットする機能、マーカーとして使用するカウンタースタイルまたは記号を設定する機能、それらのマーカーの位置を指定する機能などを定義します。また、開発者がカスタマイズしたマーカーを作成する機能も提供します。
リファレンス
>プロパティ
counter-increment
counter-reset
counter-set
list-style-image
list-style-type
list-style-position
list-style
一括指定
完全には定義または実装されていない marker-side
プロパティもあります。
擬似要素
関数
データ型
ガイド
- 一貫したリストのインデント
-
異なるブラウザー同士でも一貫したリストのインデントを実現する方法を説明します。
- CSS カウンターの使用
-
リストのカウンターを制御するために CSS カウンタープロパティを使用する方法を説明します。
関連概念
-
@counter-style
アットルール<counter-style-name>
データ型<symbol>
データ型symbols()
関数
-
<ol>
のstart
、reversed
、type
属性 -
<ul>
のtype
属性 -
<li>
のtype
およびvalue
属性
仕様書
Specification |
---|
CSS Lists and Counters Module Level 3> |
関連情報
- CSS カウンタースタイルモジュール
- CSS 擬似要素モジュール
- CSS 生成コンテンツモジュール