码迷,mamicode.com
首页 > 其他好文 > 详细

鼠标状态

时间:2018-08-05 20:28:48      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:hand   str   样式   poi   bsp   resize   sha   scroll   nbsp   

用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

鼠标状态

标签:hand   str   样式   poi   bsp   resize   sha   scroll   nbsp   

原文地址:https://www.cnblogs.com/ybygb-geng/p/9426860.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!