在html中怎样实现当鼠标放到submit按钮上时使鼠标变为单击文字链接时的图标(即手的形状)?

如题所述

在html文件中添加一个事件,就是当鼠标滑动到submit按钮上时,设置鼠标样式即可,具体例子如下:

<html>

<body>
<p>请把鼠标移动到单词上,可以看到鼠标指针发生变化:</p>
<span style="cursor:auto">
Default</span><br />
<span style="cursor:pointer">


Pointer</span><br />            <!--这个就是你需要的-->
<span style="cursor:move">


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


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


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

</html>

温馨提示:内容为网友见解,仅供参考
第1个回答  2012-03-24
cursor:pointer
相似回答