HTML CSS Reference/CSS Attributes and Javascript Style Properties/list style

Материал из Web эксперт
Перейти к: навигация, поиск

"list-style" Example

    
<html>
<head>
</head>
<body>
<ul style="list-style="circle outside none""> 
    <li>Item 1.</li>
    <li>Item 2.</li>
    <li>Item 3.</li>
    <li>Item 4.</li>
    <li>Item 5.</li>
</ul>
</body>
</html>



"list-style" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<li>                            <ol>                          |
|                |runtimeStyle                    style                         |
|                |<ul>                                                          |
+----------------+--------------------------------------------------------------+



"list-style" Syntax and Note

Note:
Controls three different list-style style properties: 
   list-style-type, 
   list-style-position,
   list-style-image. 
Syntax:
    
element { list-style: value }
elementID.style.listStyle = "value"
document.all.elementID.style.listStyle = "value"