list-style(リストスタイル)について
リスト(ul etc)要素関連の設定を一括指定するプロパティです。

list-style-typeのブラウザ表示例(一部表示されません)
- ■CSS記述
-
.sample { list-style-type:(値); } - ■XHTML記述
<ul class="sample">
<li>サンプル</li>
</ul>
- disc
- circle
- square
- decimal
- decimal-leading-zero
- lower-roman
- upper-roman
- lower-alpha
- upper-alpha
- lower-latin
- upper-latin
- lower-greek
- hebrew
- armenian
- georgian
- cjk-ideographic
- hiragana
- katakana
- hiragana-iroha
- katakana-iroha
- none
list-style-imageのブラウザ表示例
- ■CSS記述
-
.sample { list-style-type:none; list-style-image:url(../images/sample.gif); list-style-position:inside; } - ■XHTML記述
<ul class="sample">
<li>サンプル</li>
</ul>
- サンプル
list-style(リストスタイル)の設定方法
- 一括設定
- list-style: (タイプ) (画像) (表示位置);
- リストタイプ設定
- list-style-type: (値);
- リスト画像設定
- list-style-image: (値);
- リスト表示位置設定
- list-style-position: (値);
