求助 display:inline-block;!!!!
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>页码的制作</title>
<style type="text/css">
/*在此定义相关CSS样式*/
.page{
height:40px;
line-height:40px;
text-align:center;
}
.page a{
display:inline-block;
text-decoration:none;
border:1px solid #E8E8E8;
margin:5px;
padding:5px 10px;
font-size:14px;
font-family:"微软雅黑";
}
.page a:link,.page a:visited{
color:#000;
}
.page a:hover,.page a:active{
color:#FFF;
background-color:#F00;
}
</style>
</head>
<body>
<!--在此制作页码的基本结构-->
<div class="page">
<a href="#">首页</a>
<a href="#"><</a>
<a href="#">1</a>
<a href="#">2</a>
<a href="#">3</a>
<a href="#">...</a>
<a href="#">></a>
<a href="#">末页</a>
</div>
</body>
</html>为什么我一把display:inline-block;加进去 ,a标签就变大了!!!