z921129H
2016-04-13 21:19
我总达不到那种效果
<style type="text/css">
*{
margin: 0;
padding: 0;
}
#move{
width: 300px;
margin: 10px auto;
border: 1px solid #ccc;
}
#move a{
display: inline-block;
width: 58px;
height: 25px;
border: 1px solid #ddd;
border-radius: 3px;
background-color: #fff;
text-align: center;
margin: 10px 17px;
position: relative;
padding-top: 40px;
color: #9c9c9c;
font-size: 12px;
text-decoration: none;
line-height: 25px;
overflow: hidden;
}
#move a i{
position: absolute;
top: 20px;
left: 0;
display: inline-block;
width: 100%;
text-align: center;
filter: alpha(opacity=100);
opacity: 1;
}
#move a:hover{
color: #F00;
}
#move img{
border: none;
}
</style>
a {
display: inline-block;
height: 25px;
width: 58px;
border: 1px solid #ddd;
border-radius: 3px;
background-color: #fff;
margin:10px 17px;
text-align: center;
position: relative;
padding-top: 40px;
color: #9c9c9c;
font-size: 12px;
}
#main a i {
position: absolute;
top: 20px;
left: 0;
display: inline-block;
width: 100%;
text-align: center;
filter:alpha(opacity=100);
opacity: 1;
}
#main a:hover {
color:#f00;
}
i {
position: relative;
}
#main img {
border: none;
}
抄了一部分
求一个源代码,谢谢大神
JS动画效果
113925 学习 · 1443 问题
相似问题