list

英[lɪst] 美[lɪst]

n.List, catalog; slant; edge of cloth, end of cloth; narrow strip

vt. List, include; compile... into a table; record in the list

vi. List on the table

Third person singular: lists Plural: lists Present participle: listing Past Formula: listed past participle: listed

style

英[staɪl] 美[staɪl]

n. Style; style; fashion; instrument, Taste

vt. To design; to name; to shape...

vi. To conform to popular styles; to make decorative paintings with a carving knife

Third person singular: styles Plural: styles now Participle: styling Past tense: styled Past participle: styled

css list-style attribute syntax

Function: Set all list properties in one statement.

Description: This attribute is a shorthand attribute that covers all other list style attributes. Since it applies to all elements with display list-item, it can only be used on li elements in normal HTML and XHTML, but in fact it can be applied to any element and is inherited by list-item elements. The following attributes can be set in order: list-style-type, list-style-position, list-style-image. It is not necessary to set one of the values. For example, "list-style:circle inside;" is also allowed. Properties that are not set use their default values.

Note: All browsers support the list-style attribute.

css list-style attribute example

<html>
<head>
<style type="text/css">
ul 
{
list-style: circle inside;
}
</style>
</head>

<body>
<ul>
<li>咖啡</li>
<li>茶</li>
<li>可口可乐</li>
</ul>
</body>

</html>

Run instance »

Click the "Run instance" button to view the online instance