・CSS - 分類
W3CのClassification propertiesにあたる箇所。
・分類プロパティ
display : [ block | inline | list-item | none ]
white-space : [ normal | pre | nowrap ]
// ブロックレベル要素に対応
/*** 以下の文は"displayプロパティ"の値が"list-item"の要素に対応 ***/
list-style-type : [ disc | circle | square | decimal | lower-roman
¥
| upper-roman | lower-alpha | upper-alpha | none ]
¥
OL { list-style-type: decimal; }
/* 1 2 3 4 5 etc. */
OL { list-style-type: lower-alpha; }
/* a b c d e etc. */
OL { list-style-type: lower-roman; }
/* i ii iii iv v etc. */
list-style-image : [
<url>
| none ]
list-style-position : [ inside | outside ]
list-style : [ disc | circle | square | decimal | lower-roman | upper-roman
¥
| lower-alpha | upper-alpha | none ] || [ inside | outside ] || [
<url>
| none]
UL { list-style: upper-roman inside; }
UL UL { list-style: circle outside; }
LI.square { list-style: square; }
一つ上に
|
トップページへ
|
ググる
lowry1213@yahoo.co.jp