css按鈕滑動

 <style type="text/css">
<!--
.btn45 {
 width:152px;
 height:50px;
 background:url("bg45.jpg") repeat-x left top;
 color:#ffafaf;
 padding-bottom:18px;
 padding-left:14px;
}
-->
</style>

鼠標經過按鈕時照片上移75

<input type="button" class="btn45" value="Submit" onmouseover="this.style.backgroundPosition='left -75px';this.style.color='#bcf1a7';" onmouseout="this.style.backgroundPosition='left top';this.style.color='#ffafaf';" />

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章