스타일 listStyleImage 속성
예시
목록의 목록 항목 마커로 이미지를 지정합니다.
document.getElementById("myList").style.listStyleImage = "url('sqorange.gif')";
정의 및 사용
listStyleImage 속성은 이미지를 목록 항목 마커로 설정하거나 반환합니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
listStyleImage | Yes | Yes | Yes | Yes | Yes |
통사론
listStyleImage 속성을 반환합니다.
object.style.listStyleImage
listStyleImage 속성을 설정합니다.
object.style.listStyleImage = "none|url|initial|inherit"
속성 값
Value | Description |
---|---|
none | No image will be displayed. This is default |
url | Specifies the path to the image |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 없음 |
---|---|
반환 값: | 이미지의 위치 경로를 나타내는 문자열 |
CSS 버전 | CSS1 |
더 많은 예
예시
list-style-image 속성 값을 반환합니다.
alert(document.getElementById("myList").style.listStyleImage);
관련 페이지
CSS 튜토리얼: CSS 목록
CSS 참조: list-style-image 속성
HTML DOM 참조: listStyle 속성
❮ 스타일 개체