首页 > 代码库 > HTML可以拉长的logo

HTML可以拉长的logo

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
a.cc{
display:block;
float:left;
height:40px;
line-height:40px;
background-image:url(images/b.png);
background-repeat:no-repeat;
background-position:0px -267px;
margin-left:5px;
text-decoration:none;
}
a.cc span{
display:block;
float:right;
width:5px;
height:40px;
background-image:url(images/b.png);
background-repeat:no-repeat;
background-position:right -267px;
}
a.cc:hover{
background-image:url(images/b.png);
background-position:0px -323px;
}
a.cc:hover span{
background-image:url(images/b.png);
background-position:right -323px;
}
</style>
</head>
<a class="cc" href="http://www.mamicode.com/#">第一个按钮<span></span></a>
<a class="cc" href="http://www.mamicode.com/#">第一个按钮<span></span></a>
<a class="cc" href="http://www.mamicode.com/#">第一个按钮<span></span></a>
</body>
</html>

HTML可以拉长的logo