Skip to content

Instantly share code, notes, and snippets.

@lidatui
Created September 21, 2014 14:53
Show Gist options
  • Save lidatui/03a5ae6b09f83b0e676e to your computer and use it in GitHub Desktop.
Save lidatui/03a5ae6b09f83b0e676e to your computer and use it in GitHub Desktop.
自定义序号
<style type="text/css">
<!--
ol {
counter-reset: item;
margin-left: 0;
padding-left: 0;
}
li {
display: block;
margin-bottom: .5em;
margin-left: 2em;
}
li:before {
display: inline-block;
content: counter(item) ") ";
counter-increment: item;
width: 2em;
margin-left: -2em;
}
-->
</style>
<body>
<ol>
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
<li>Five</li>
<li>Six</li>
<li>Seven</li>
<li>Eight</li>
<li>Nine<br>Items</li>
<li>Ten<br>Items</li>
</ol>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment