伤害是别人带来的,开心是自己寻找的,想哭就哭,哭完了接着笑,没有人能把谁的幸福没收。
用css 添加手状样式,鼠标移上去变小手,变小手
复制代码
代码如下:<span style="font-size:14px">cursor:pointer;
</span><div class="wp_syntax"><span style="font-size:14px">用JS使鼠标变小手onmouseover(鼠标越过的时候)
</span><div class="code"><pre name="code" class="javascript"><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 class="wp_syntax"><span style="font-size:14px"></span><div class="code"><span style="font-size:14px"></span><pre name="code" class="php"><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>
到此这篇关于用css添加手状样式鼠标移上去变小手就介绍到这了。认识自己,降伏自己,改变自己,才能改变别人。更多相关用css添加手状样式鼠标移上去变小手内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!