<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>百度糯米购物信息导航</title>
<style>
*{
padding: 0;
margin: 0;
}
div{
margin: 0 auto;
position: relative;
}
img{
width: 100%;
}
ul{
position: fixed;
right: 0;
top: 40%;
list-style: none;
}
li{
position: relative;
margin-bottom: 4px;
}
a{
width: 36px;
height: 36px;
display: block;
line-height: 36px;
background: #414141;
border-radius: 4px 0 0 4px;
}
span{
position: absolute;
top: 0;
background: #414141;
width: 50px;
height: 36px;
line-height: 36px;
padding: 0 20px;
font-size: 12px;
color: #fff;
border-radius: 4px 0 0 4px;
opacity: 0;
}
.a{
background: #414141 url("image/toolbar_05.png") center no-repeat;
}
.b{
background: #414141 url("image/toolbar_10.png") center no-repeat;
}
.c{
background: #414141 url("image/toolbar_15.png") center no-repeat;
}
.d{
background: #414141 url("image/toolbar_19.png") center no-repeat;
}
li:hover span{
background: #C84D49;
animation: move 0.2s linear both;
}
li:hover a{
background-color: #bb1914;
border-radius: 0;
}
@keyframes move{
0% {
display: none;
left: 0;
}
100% {
opacity: 1;
left: -90px;
}
}
</style>
</head>
<body>
<div>
<img src="image/img.bmp">
<ul>
<li>
<a href="#" class="a"></a>
<span>购物车</span>
</li>
<li>
<a href="#" class="b"></a>
<span>我的关注</span>
</li>
<li>
<a href="#" class="c"></a>
<span>我的足迹</span>
</li>
<li>
<a href="#" class="d"></a>
<span>我的消息</span>
</li>
</ul>
</div>
</body>
</html>