html鼠标悬浮在按钮上,让按钮背景变色

来源:百度知道 编辑:UC知道 时间:2024/09/21 02:43:52
写一下代码。写的要值这个分。

把下面代码直接保存为.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