码迷,mamicode.com
首页 > 其他好文 > 详细

无序列表画圆图

时间:2016-09-03 19:50:59      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:

效果图:

技术分享

<html>
 <head>
  <title> New Document </title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
 </head>
<style>
    
    div{
    height:80px;
    width:525px;
    background-color:gray;
    }
    ul{
      list-style:none;
      padding-top:18px;
      padding-left:30px;
    }
    li{
      float:left;
      width:40px;
      height:40px;
      line-height:40px;
      text-align:center;
      border-radius:40px;
      font-size:25px;
      margin-left:5px;
    }
    ul li:first-child{
        background-color:#00ff00;
     }
     ul li:nth-child(2){
        color:#339900;
        background-color:#ff9933;
     }
     ul li:nth-child(3){
        color:white;
        background-color:red;
     }
     ul li:nth-child(4){
        color:#339900;
        background-color:#ff9933;
     }
     ul li:nth-child(5){
        color:white;
        background-color:#009900;
     }
     ul li:nth-child(6){
        color:#339900;
        background-color:#ff9933;
     }
     ul li:nth-child(7){
        color:#339900;
        background-color:#ff9933;
     }
     ul li:nth-child(8){
        color:#339900;
        background-color:#ff9933;
     }
     ul li:nth-child(9){
        color:#339900;
        background-color:#ff9933;
     }
     ul li:nth-child(10){
        color:#00ff00;
        background-color:black;
     }
</style>
 <body>
    <div>
     <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
        <li>6</li>
        <li>7</li>
        <li>8</li>
        <li>9</li>
        <li>10</li>
     </ul>
    </div>
 </body>
</html>

无序列表画圆图

标签:

原文地址:http://www.cnblogs.com/1041062459li/p/5837762.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!