Меню
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP КАК СДЕЛАТЬ ПРОГРАММЫ SW3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS КИБЕРБЕЗОПАСНОСТЬ НАУКА О ДАННЫХ
     ❯   

CSS Справочники


CSS Свойства





list-style-type



Example

Set some different list styles:

ul.a {list-style-type: circle;}
ul.b {list-style-type: square;}
ol.c {list-style-type: upper-roman;}
ol.d {list-style-type: lower-alpha;}
Try it Yourself »

Definition list-style-type

The list-style-type specifies the type of list-item marker in a list.

Show demo ❯

Default value: disc
Inherited: yes
Animatable: no. Read about animatable
Version: CSS1
JavaScript syntax: object.style.listStyleType="square" Try it

Browser Support list-style-type

The numbers in the table specify the first browser version that fully supports the property.

Property
list-style-type 1.0 4.0 1.0 1.0 3.5

Note: Edge 18 and Opera 12 and earlier versions do not support the values: cjk-ideographic, hebrew, hiragana, hiragana-iroha, katakana, and katakana-iroha.



CSS Syntax list-style-type

list-style-type: value;

Property Values list-style-type

Value Description Demo
disc Default value. The marker is a filled circle Demo ❯
armenian The marker is traditional Armenian numbering Demo ❯
circle The marker is a circle Demo ❯
cjk-ideographic The marker is plain ideographic numbers Demo ❯
decimal The marker is a number Demo ❯
decimal-leading-zero The marker is a number with leading zeros (01, 02, 03, etc.) Demo ❯
georgian The marker is traditional Georgian numbering Demo ❯
hebrew The marker is traditional Hebrew numbering Demo ❯
hiragana The marker is traditional Hiragana numbering Demo ❯
hiragana-iroha The marker is traditional Hiragana iroha numbering Demo ❯
katakana The marker is traditional Katakana numbering Demo ❯
katakana-iroha The marker is traditional Katakana iroha numbering Demo ❯
lower-alpha The marker is lower-alpha (a, b, c, d, e, etc.) Demo ❯
lower-greek The marker is lower-greek Demo ❯
lower-latin The marker is lower-latin (a, b, c, d, e, etc.) Demo ❯
lower-roman The marker is lower-roman (i, ii, iii, iv, v, etc.) Demo ❯
none No marker is shown Demo ❯
square The marker is a square Demo ❯
upper-alpha The marker is upper-alpha (A, B, C, D, E, etc.)  Demo ❯
upper-greek The marker is upper-greek Demo ❯
upper-latin The marker is upper-latin (A, B, C, D, E, etc.) Demo ❯
upper-roman The marker is upper-roman (I, II, III, IV, V, etc.) Demo ❯
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit

More Examples list-style-type

Example

This example demonstrates all the different list-item markers:

ul.a {list-style-type: circle;}
ul.b {list-style-type: disc;}
ul.c {list-style-type: square;}

ol.d {list-style-type: armenian;}
ol.e {list-style-type: cjk-ideographic;}
ol.f {list-style-type: decimal;}
ol.g {list-style-type: decimal-leading-zero;}
ol.h {list-style-type: georgian;}
ol.i {list-style-type: hebrew;}
ol.j {list-style-type: hiragana;}
ol.k {list-style-type: hiragana-iroha;}
ol.l {list-style-type: katakana;}
ol.m {list-style-type: katakana-iroha;}
ol.n {list-style-type: lower-alpha;}
ol.o {list-style-type: lower-greek;}
ol.p {list-style-type: lower-latin;}
ol.q {list-style-type: lower-roman;}
ol.r {list-style-type: upper-alpha;}
ol.s {list-style-type: upper-greek;}
ol.t {list-style-type: upper-latin;}
ol.u {list-style-type: upper-roman;}
ol.v {list-style-type: none;}
ol.w {list-style-type: inherit;}
Try it Yourself »
Example

How to add bullet colors for <ul> or <ol> by removing their default bullets and adding a HTML entity that looks like bullets (&bull;):

ul {
  list-style: none; /* Remove list bullets */
  padding: 0;
  margin: 0;
}

li {
  padding-left: 16px;
}

li::before {
  content: "•"; /* Insert content that looks like bullets */
  padding-right: 8px;
  color: blue; /* Or a color you prefer */
}
Try it Yourself »

Related Pages list-style-type

CSS tutorial: CSS List

CSS reference: list-style property

HTML DOM reference: listStyleType property



×

Связаться с отделом продаж

Если вы хотите использовать услуги schoolsw3 как образовательное учреждение, команда или предприятие, отправьте нам электронное письмо:
sales@schoolsw3.com

Сообщить об ошибке

Если вы хотите сообщить об ошибке или внести предложение, отправьте нам электронное письмо:
help@schoolsw3.com

Schoolsw3 оптимизирован для обучения и подготовки. Примеры могут быть упрощены для улучшения чтения и обучения. Учебники, ссылки и примеры постоянно проверяются, чтобы избежать ошибок, но мы не можем гарантировать полную правильность всего контента.
При использовании Schoolsw3 вы соглашаетесь прочитать и принять наши условия использования,
политику использования файлов cookie и конфиденциальности.

Авторское право 1999- принадлежит Refsnes Data. Все права защищены. Schoolsw3 работает на SW3.CSS.