案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<script type="text/javascript">
4
function changeList()
5
{
6
document.getElementById("ul1").style.listStylePosition="inside";
7
}
8
</script>
9
</head>
10
<body>
11
12
<ul id="ul1">
13
  <li>Coffee</li>
14
  <li>Tea</li>
15
  <li>Water</li>
16
  <li>Soda</li>
17
</ul>
18
19
<input type="button" onclick="changeList()" value="Change list-item marker position" />
20
21
</body>
22
</html>
23