知识林
当前位置:知识林 » 网站前端开发 » CSS » 文档 » css list-style

css list-style

来源: 知识林

The list-style CSS property is a shorthand for setting the individual values that define how a list is displayed: list-style-type, list-style-image, and list-style-position.

Formal syntax
<'list-style-type'> || <'list-style-position'>; || <'list-style-image'>;

Initial value list-style-type: disc list-style-position: outside list-style-image: none
<style type="text/css">
{
/* type */
list-stylesquare;

/* image */
list-styleurl('../img/shape.png');

/* position */
list-styleinside;

/* type | position */
list-stylegeorgian inside;

/* type | image | position */
list-stylelower-roman url('../img/shape.png') outside;

/* Keyword value */
list-stylenone;

/* Global values */
list-styleinherit;
list-styleinitial;
list-styleunset;
}
</style>

今天

Copyright © 知识林 All Rights Reserved.   吉ICP备13001611号-1