CSS實現行編號效果

來源:互聯網
上載者:User

 

  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  4. <title>帶有行編號且編號與內容間帶有分割符的CSS實現</title>
  5. <style type="text/css">
  6. <!--
  7. ol{MARGIN: 0px 0px 1px 45px;LIST-STYLE-TYPE: decimal;}
  8. li {BORDER-LEFT: #6ce26c 3px solid;BACKGROUND-COLOR: #f8f8f8;LIST-STYLE-POSITION:outside;}
  9. li.alt {BACKGROUND-COLOR: #ffffff}
  10. .STYLE1 {font-size: 12px}
  11. -->
  12. </style>
  13. </head>
  14. <body>
  15. <ol class="STYLE1">
  16.     <li>ddddd</li>
  17.     <li class="alt">ddddd</li>
  18.     <li>ddddd</li>
  19.     <li class="alt">ddddd</li>
  20.     <li>ddddd</li>
  21.     <li class="alt">ddddd</li>
  22.     <li>ddddd</li>
  23.     <li class="alt">ddddd</li>
  24.     <li>ddddd</li>
  25.     <li class="alt">ddddd</li>
  26. </ol>
  27. </body>
  28. </html>

 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.