展开全部
鼠标放在button上改变颜色,HTML
<button onmouseover="this.style.backgroundColor='red';"
onmouseout="this.style.backgroundColor='';" >确定</button>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
把下面代码直接保存为.html后缀名就可以了。。。记得给分就是了
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<style>
.adminbutton {border:#07A1EE 1px solid;background:#BFE7FA; height:22px;}
</style>
<body><br><br><br>
<center>
<input type="button" name="SubmitS" value=" 按 钮 " class="adminbutton" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#efefef'" style="height:18px;padding-top:1px; width:">
</center>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<style>
.adminbutton {border:#07A1EE 1px solid;background:#BFE7FA; height:22px;}
</style>
<body><br><br><br>
<center>
<input type="button" name="SubmitS" value=" 按 钮 " class="adminbutton" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#efefef'" style="height:18px;padding-top:1px; width:">
</center>
</body>
</html>
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询