css怎么改变鼠标样式


当前第2页 返回上一页

实例:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title></title>

</head>

<body>

<p>请把鼠标移动到单词上:</p>

<span style="cursor:auto">auto</span><br>

<span style="cursor:crosshair">crosshair</span><br>

<span style="cursor:default">default</span><br>

<span style="cursor:e-resize">e-resize</span><br>

<span style="cursor:help">help</span><br>

<span style="cursor:move">move</span><br>

<span style="cursor:n-resize">n-resize</span><br>

<span style="cursor:ne-resize">ne-resize</span><br>

<span style="cursor:nw-resize">nw-resize</span><br>

<span style="cursor:pointer">pointer</span><br>

<span style="cursor:progress">progress</span><br>

<span style="cursor:s-resize">s-resize</span><br>

<span style="cursor:se-resize">se-resize</span><br>

<span style="cursor:sw-resize">sw-resize</span><br>

<span style="cursor:text">text</span><br>

<span style="cursor:w-resize">w-resize</span><br>

<span style="cursor:wait">wait</span><br>

</body>

</html>

这样鼠标就变成我们需要的了。

GIF.gif

说明:

还有一种用法其原理是:利用了CSS2的一个cursor的属性cursor:url (url),鼠标文件可以使用jpggifanicur多种文件格式。需要注意的这种方式只能在IE5.5以上浏览器中正常显示。

推荐学习:《css视频教程》

以上就是css怎么改变鼠标样式的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

css中怎么设置虚线上边框

css如何设置元素位置不变

深入了解css中的计数函数

css border-left-width属性怎么用

css层叠样式表的含义是什么

什么是css(层叠样式表)?

css怎么设置侧边栏

css左浮动怎么写?

css怎么设置边框为虚线样式

css怎么设置边框的宽度

更多相关阅读请进入《css》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...