CSSリストスタイルのプロパティ
例
1つの宣言ですべてのリストプロパティを指定します。
ul
{
list-style: square inside url("sqpurple.gif");
}
定義と使用法
このlist-style
プロパティは、次のプロパティの省略形です。
値の1つが欠落している場合、そのプロパティのデフォルト値が使用されます。
デフォルト値: | なしの外のディスク |
---|---|
遺伝性の: | はい |
アニメート可能: | 番号。アニメート可能について読む |
バージョン: | CSS1 |
JavaScript構文: | object .style.listStyle = "decimal inside" |
ブラウザのサポート
表の数字は、プロパティを完全にサポートする最初のブラウザバージョンを示しています。
Property | |||||
---|---|---|---|---|---|
list-style | 1.0 | 4.0 | 1.0 | 1.0 | 7.0 |
CSS構文
list-style: list-style-type list-style-position list-style-image|initial|inherit;
プロパティ値
Value | Description |
---|---|
list-style-type | Specifies the type of list-item marker. Default value is "disc" |
list-style-position | Specifies where to place the list-item marker. Default value is "outside" |
list-style-image | Specifies the type of list-item marker. Default value is "none" |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
関連ページ
CSSチュートリアル:CSSリスト
HTML DOMリファレンス:listStyleプロパティ