在css中自定义鼠标样式

来源:百度知道 编辑:UC知道 时间:2024/06/14 00:50:00
在css中自定义鼠标样式的格式是什么,我知道是cursor,可我忘了格式了,哪位高手能指点一下

语法:

cursor : auto | crosshair | default | hand | move | help | wait | text | w-resize |s-resize | n-resize |e-resize | ne-resize |sw-resize | se-resize | nw-resize |pointer | url (url)

参数: crosshair default hand pointer
move help wait text
w-resize s-resize n-resize e-resize
ne-resize sw-resize se-resize nw-resize
auto url(img/1001.gif)

您将鼠标在上方的表格内移动,就能看到本属性在您当前的软件环境下可以使用的样式。
以这种颜色为背景色的是IE5.5尚不支持的值。

说明:

设置或检索在对象上移动的鼠标指针采用何种系统预定义的光标形状。
对应的脚本特性为cursor。请参阅我编写的其他书目。

示例:

p { cursor: text; }
a { cursor: pointer; }
body { cursor: url("mycursor.gif"), url("images/cursors/footcursor.jpg"), default; }

cursor:url(图片路径)
例如:<body style="cursor:url(xx.cur)">...</body>

给你一个鼠标指针样式的网站:http://shu.skycx.com/

cursor:hand;