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

來源:互聯網
上載者:User

用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

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.