滑鼠移動上去 , 出現小手

2021-08-05 22:04:04 字數 1023 閱讀 9336

用css 新增手狀樣式,滑鼠移上去變小手,變小手

cursor:pointer;

相容問題,解決辦法就是使用css hack,**如下:

用js使滑鼠變小手onmouseover(滑鼠越過的時候)

onmouseover=

"this.style.cursor='hand'"

="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

css 新增手狀樣式,滑鼠移上去變小手

用css 新增手狀樣式,滑鼠移上去變小手,變小手 cursor pointer 用js使滑鼠變小手onmouseover 滑鼠越過的時候 onmouseover this.style.cursor hand cursor其他取值 auto 標準游標 default 標準箭頭 pointer,hand...

用css 新增手狀樣式,滑鼠移上去變小手

用css 新增手狀樣式,滑鼠移上去變小手 cursor pointer 用js使滑鼠變小手onmouseover 滑鼠越過的時候 onmouseover this.style.cursor hand cursor其他取值 auto 標準游標 default 標準箭頭 pointer,hand 手形游...

用css 新增手狀樣式,滑鼠移上去變小手,變小手

用css 新增手狀樣式,滑鼠移上去變小手,變小手 相容 cursor pointer style cursor pointer 用js使滑鼠變小手onmouseover 滑鼠越過的時候 不相容 onmouseover this.style.cursor hand cursor其他取值 auto 標準...