鼠标样式改变问题

pyz8000 2003-01-25 11:55:12
一个页面里有几十个button,
现在想当鼠标移到这些button里时,会改成手的样式,
我使用的方法:
<style type=text/css>
.aa{cursor:hand}
</style>
然后每个button中调用class=aa
这个我觉得很麻烦,,因为每个button里都要写class=aa,,
有没有通用的方法?
比如body{cursor:hand}这样的?没有button{cursor:hand}之类的吗?
...全文
19 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
江南昆虫 2003-01-26
  • 打赏
  • 举报
回复
用button{cursor:hand} + <button> 啊!


<STYLE TYPE="text/css">
button{cursor:hand}
</STYLE>
<form method=post action="">
<input type="text" name="j">
<input type="submit">
==》
<button type="submit">提交</button>

<input type="reset">
==》
<button type="reset">重置</button>

<input type="button" value="按钮">
==》
<button>按钮</button>
</form>
孟子E章 2003-01-25
  • 打赏
  • 举报
回复
button,input,body,a{cursor:hand}
pyz8000 2003-01-25
  • 打赏
  • 举报
回复
To net_lover(孟子E章)
不行啊,,我只要当移到鼠标上的时候才变啊,
button{cursor:hand}这个不行啊,
input,button{cursor:hand}这个可以,不过,输入框也变成手了,怎么办?

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧