当前位置:编程学习 > C#/ASP.NET >>

鼠标移动变形

在静态页面中。有个<image>标签,如何在页面中移动到这个标签的内容上面的时候,鼠标的图形变成手型而不是原来的箭头形?谢谢 --------------------编程问答-------------------- img {
   pointer:hand;
} --------------------编程问答-------------------- cursor:pointer --------------------编程问答-------------------- cursor:pointer --------------------编程问答-------------------- <img style="cursor:pointer"/> --------------------编程问答-------------------- pointer:hand;
--------------------编程问答-------------------- 好吧 楼上都说了。我就不多说了 --------------------编程问答-------------------- CSS中的“cursor”属性,利用“style=cursor:值”这样的语句形式,分别设置具体的值就可以了。例如:值为“hand”时,当鼠标移到相应的文字或图片上时,就会变成超链接的小手形;值为“move”时,当鼠标移到相应的文字或图片上时,就会变成上下左右带方向箭头的形状,依此类推。这个小技巧也许可以在你制作主页时帮上一点忙呢!http://blog.sina.com.cn/s/blog_405670080100039j.html --------------------编程问答-------------------- cursor:pointer --------------------编程问答-------------------- 选中该控件,属性里面有的,慢慢找,忘记是哪个了,你认真找下咯。找多点加深记忆啊 --------------------编程问答-------------------- <img style="cursor:pointer"/>
有很多人用hand,这个在非IE浏览器中可能不兼容,还是pointer吧 --------------------编程问答-------------------- <img style="cursor:pointer"/> --------------------编程问答-------------------- <img style="cursor:pointer"/>
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,