listStyleImage 属性把图像设置为列表项标志。
</>code
- Object.style.listStyleImage=url|none
值 | 描述 |
---|---|
url | 图形的路径。 |
none | 不会显示图像。 |
下面的例子改变列表的列表项标志:
</>code
- <html>
- <head>
- <script type="text/javascript">
- function changeList()
- {
document.getElementById("ul1").style.listStyleImage="url('blueb.gif')";
- }
- </script>
- </head>
- <body>
- <ul id="ul1">
- <li>Coffee</li>
- <li>Tea</li>
- <li>Water</li>
- <li>Soda</li>
- </ul>
- <input type="button" onclick="changeList()"
- value="Change list-item marker" />
- </body>
- </html>
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛
Powered by 365建站网 RSS地图 HTML地图
copyright © 2013-2024 版权所有 鄂ICP备17013400号