@charset "utf-8";
/* CSS Document */
body{
margin:0 auto;
width:1000px;
height:1000px;
font-size:12px;
}
.div1 {
width:400px;
height:450px;
margin-left:10px;
margin-top:100px;
margin-left:250px;
}
font {
font-weight:bold;
font-size:18px;
font-family:"楷體";
}
.span1 {
display:block;
height:18px;
}
.span1 a {
float:right;
text-decoration:none;
}
.faceul {
margin:0px;
width:350px;
height:120px;
list-style-type:none;
}
.faceul li {
width:90px;
height:90px;
float:left;
margin-right:20px;
margin-top:10px;
}
.faceul img {
width:80px;
height:70px;
margin:10px;
}
/*鏈接*/
.faceul a {
text-decoration:none;
text-align:center;
}
a:hover{
text-decoration:underline;
font-size:18px;
color:#F00;
}
a:visited {
color:#C9F;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>盒子模型1</title>
<link href="盒子模型綜合一.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="div1">
<div>
<span class="span1"> <font>優酷小新</font><a href="#">更多..</a></span>
<ul class="faceul">
<li><img src="../案例二/1.gif" /><a href="#">洗澡的小新</a></li>
<li><img src="../案例二/2.gif" /><a href="#">小新穿裙子</a></li>
<li><img src="../案例二/3.gif" /><a href="#">小新當蜜蜂</a></li>
</ul>
</div>
<div>
<span class="span1"> <font>56小新</font><a href="#">更多..</a></span>
<ul class="faceul">
<li><img src="../案例二/4.gif" /><a href="#">憤怒的小新</a></li>
<li><img src="../案例二/5.gif" /><a href="#">鬧鬧的小新</a></li>
<li><img src="../案例二/6.gif" /><a href="#">小新的最愛</a></li>
</ul>
</div>
<div>
<span class="span1"> <font>搜狐小新</font><a href="#">更多..</a></span>
<ul class="faceul">
<li><img src="../案例二/7.gif" /><a href="#">這個很無語</a></li>
<li><img src="../案例二/8.gif" /><a href="#">小新之泡妞</a></li>
<li><img src="../案例二/9.gif" /><a href="#">小新之相撲</a></li>
</ul>
</div>
</div>
</body>
</html>