CSS 목록 스타일 속성
예시
하나의 선언에서 모든 목록 속성을 지정합니다.
ul
{
list-style: square inside url("sqpurple.gif");
}
정의 및 사용
list-style
속성은 다음 속성에 대한 속기입니다 :
값 중 하나가 누락된 경우 해당 속성의 기본값이 사용됩니다.
기본값: | 디스크 외부 없음 |
---|---|
상속: | 네 |
애니메이션 가능: | 아니요. 애니메이션 가능 에 대해 읽기 |
버전: | CSS1 |
자바스크립트 구문: | object .style.listStyle="안의 10진수" |
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
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 속성