<html>
<body>
<ol id="myOl" type="I">
<li>咖啡</li>
<li>绿茶</li>
<li>牛奶</li>
</ol>
<p>单击按钮将有序列表的起始值设置为 “5”。</p>
<button onclick="myFunction()">试一试</button>
<script>
function myFunction() {
document.getElementById("myOl").start = "5";
}
</script>
</body>
</html>