所以我想准确地重新创建丝带过渡http://subtlepatterns.com/但我做错了。我的功能区图像是 140x160 [width,height] 但悬停没有任何反应。
我放:
#toplogo {
position: absolute;
left: 400px;
background-position: 0px -10px;
z-index: 5000;
}
#toplogo a {
background: url('ribbon.png') no-repeat;
width: 140px;
height: 160px;
display: block;
background-position: 0px -10px;
text-indent: -9999px;
-webkit-transition: 0.10s ease-in;
-moz-transition: 0.10s ease-in;
}
<div id="toplogo"> <a href="/">hello</a> </div>