首页 > 代码库 > 无序列表画圆图
无序列表画圆图
效果图:
<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>
无序列表画圆图