简单教程
提交运行
代码编辑器:
<script> function displayResult(){ document.getElementById("ul1").style.listStylePosition="inside"; } </script> <ul id="ul1"> <li>Coffee</li> <li>Tea</li> <li>Water</li> <li>Soda</li> </ul> <br> <button type="button" onclick="displayResult()">缩进列表项的标记</button>
运行结果: