CSS代码如下:
.tupian {
width: 60px;
height: 60px;
line-height: 58px;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
border-radius: 50%;
font-size: 24px;
border-width: 1px;
border-style: solid;
border-color: #777;
background: transparent none repeat scroll 0% 0%;
margin: 0 auto;
}
.wenzi {
height: 30px;
line-height: 30px;
}
.wrapper a {
outline:none;
text-decoration: none;
}
.wrapper a span {
color: #777;
text-align: center;
display: block;
}
.wrapper a:hover span {
color: #555;
}
.wrapper a:hover span.tupian {
border-color: #555;
}
HTML代码:
<div class="wrapper">
<a href="#">
<span class="tupian"><i class="icon-file"></i></span>
<span class="wenzi">测试</span>
</a>
</div>
效果如下: