好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

css怎么设置鼠标光标形状

css设置鼠标 光标 形状的方法:可以 利用 cursor属性来进行设置,如【<span style="cursor:crossh ai r">crosshair</span>】,表示将光标设置为十字线形状。

本文操作环境:windows10系统、css 3、 ThinkPad t480 电 脑。

属性介绍:

cursor属性定义了 鼠标指针 放在一个元素边界范围内时所用的光标形状。

常用属性值:

text 此光标指示文本。

wa IT 此光标指示程序正忙(通常是一只表或沙漏)。

help 此光标指示可用的帮助(通常是一个问号或一个气球)。

auto 默认。浏览器设置的光标。

crosshair 光标呈现为十字线。

pointer 光标呈现为指示链接的指针 (一 只手)

设置鼠标光标形状的方法:

<!DOCTY PE  ht ML >
<html>
<head>
< ;m eta 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: PR ogress">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>

相关学习:CSS教程

以上就是css怎么设置鼠标光标形状的详细内容,更多请关注其它相关 文章 !

总结

以上是 为你收集整理的 css怎么设置鼠标光标形状 全部内容,希望文章能够帮你解决 css怎么设置鼠标光标形状 所遇到的问题。

如果觉得 网站内容还不错, 推荐好友。

查看更多关于css怎么设置鼠标光标形状的详细内容...

  阅读:21次