導航欄及圓形
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.box{
width: 100px;
height: 100px;
background-color: #f00;
/*正方形變圓形*/
border-radius: 50%;
}
.box1{
width: 200px;
height: 50px;
background-color: #00f;
margin-top: 30px;
/*長方形變橢圓形,數值改成高度值就可以了*/
border-radius: 50px;
}
.box2{
width: 50px;
height: 200px;
background-color: #00f;
margin-top: 30px;
/*長方形變橢圓形,數值改成高度值就可以了*/
border-radius: 50px;
}
</style>
</head>
<body>
<div class="box">
</div>
<div class="box1">
</div>
<div class="box2">
</div>
</body>
</html>
列表實例
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
*{
margin: 0;padding: 0;
}
.box{
width: 230px;
height: 320px;
border: 1px solid #488E36;
margin: 50px auto;
background-image: url(images/bg.gif);
padding: 10px;
}
h2{
color: #fff;
border-left: 5px solid #C2E643;
padding-left: 10px;
}
.content{
width: 210px;
height: 280px;
background-color: #fff;
margin-top: 10px;
padding: 0px 10px;
}
ul li{
list-style-image: url(images/tb.gif);
list-style-position: inside;
width: 100%;
height: 30px;
border-bottom: 1px dashed #000;
line-height: 30px;
color: #2A5B94;
}
</style>
</head>
<body>
<div class="box">
<h2>愛寵知識</h2>
<div class="content">
<ul>
<li>養狗比養貓更有利於健康</li>
<li>養狗比養貓更有利於健康</li>
<li>養狗比養貓更有利於健康</li>
<li>養狗比養貓更有利於健康</li>
<li>養狗比養貓更有利於健康</li>
<li>養狗比養貓更有利於健康</li>
<li>養狗比養貓更有利於健康</li>
<li>養狗比養貓更有利於健康</li>
<li>養狗比養貓更有利於健康</li>
</ul>
</div>
</div>
</body>
</html>
小圖片如下: