2011-09-04 70 views
1

如何創建一個像這樣工作的腳本here? 您將鼠標懸停在社交按鈕,然後他們移動了一點點..社交按鈕向上移動(jQuery?)

+2

所有我可以從你的鏈接看到的是*阿帕奇功能正常*。確實非常翔實。 –

回答

1

我沒有看到你的鏈接任何社交按鈕(也許是我只是盲目的;)),但如果你想徘徊之後向上移動的東西,你可以用純CSS做

.arrow 
{ 
    background: red; 
    width: 50px; 
    height: 50px; 
    display: block; 
    text-align: center; 
} 
.arrow i 
{ 
    color: #ffffff; 
    margin: 0; 
    position: relative; 
    top: 13px; 
    font-size: 19px; 
} 
.arrow:hover 
{ 
    background-color: blue; 
} 
.arrow:hover i 
{ 
    top: 5px; 
} 

在這裏,您有例如:jsfiddle