css實現鼠標懸停,光標出現小手

用css 添加手狀樣式,鼠標移上去變小手,變小手

cursor:pointer;

用JS使鼠標變小手onmouseover(鼠標越過的時候)
onmouseover="this.style.cursor='hand'"
cursor其他取值  
auto                    :標準光標  
default                 :標準箭頭  
pointer, hand                   :手形光標  
wait                     :等待光標  
text                      :I形光標  
vertical-text          :水平I形光標  
no-drop                :不可拖動光標  
not-allowed           :無效光標  
help                     :幫助光標  
all-scroll         :三角方向標  
move                     :移動標  
crosshair           :十字標  
e-resize  
n-resize  
nw-resize  
w-resize  
s-resize  
se-resize  
sw-resize
發佈了21 篇原創文章 · 獲贊 16 · 訪問量 4萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章