摘要:本篇HTML+CSS入门教程探讨了如何用CSS添加手状样式使鼠标移上去变小手,希望阅读本篇文章以后大家有所收获,帮助大家HTML+CSS入门。
用css 添加手状样式,鼠标移上去变小手,变小手
代码如下:
<span style="font-size:14px">cursor:pointer;
</span><div><span style="font-size:14px">用JS使鼠标变小手onmouseover(鼠标越过的时候)
</span><div><pre name="code"><span style="font-size:14px">onmouseover<span style="color:rgb(51,153,51)">=</span><span style="color:rgb(51,102,204)">"this.style.cursor='hand'"</span>
</span></pre><span style="font-size:14px"></span></div><span style="font-size:14px"></span></div><span style="font-size:14px"></span><div><span style="font-size:14px"></span><div><span style="font-size:14px"></span><pre name="code"><span style="font-size:14px">cursor其他取值
auto :标准光标
<span style="color:rgb(177,177,0)">default</span> :标准箭头
pointer, hand :手形光标
wait :等待光标
text :I形光标
vertical<span style="color:rgb(51,153,51)">-</span>text :水平I形光标
no<span style="color:rgb(51,153,51)">-</span>drop :不可拖动光标
not<span style="color:rgb(51,153,51)">-</span>allowed :无效光标
help :帮助光标
all<span style="color:rgb(51,153,51)">-</span>scroll :三角方向标
move :移动标
crosshair :十字标 </span>
</pre></div></div>
本文由职坐标整理发布,更多相关内容,请关注职坐标WEB前端HTML/CSS频道!
您输入的评论内容中包含违禁敏感词
我知道了
请输入正确的手机号码
请输入正确的验证码
您今天的短信下发次数太多了,明天再试试吧!
我们会在第一时间安排职业规划师联系您!
您也可以联系我们的职业规划师咨询:
版权所有 职坐标-一站式IT培训就业服务领导者 沪ICP备13042190号-4
上海海同信息科技有限公司 Copyright ©2015 www.zhizuobiao.com,All Rights Reserved.
沪公网安备 31011502005948号