<style>
.mytext{text-align: center;}
tr{text-align:justify;}
.name:hover {bakeground-color:red};
.name:active {background-color:green};
.name:focus {background-color:#FFB03B};
.bianse:active {color: #F0F;}
</style>
</head>
<body><h2 class="mytext">学生信息注册</h2>
<from name="stu" action="" methon="post">
<table border="1" align="center" cellpadding="6" cellspacing="2">
<tr>
<td>姓名:</td>
<td><input name="userName" type="text" autofocus="" class="name"></td>
<td><span class="bianse">要求1</span></td></tr>
要求:设置鼠标悬停、点击和释放间,元素成为焦点后不同背输入框背景颜色
问题:不知道错误出在哪,没有显示错误,但是鼠标经过、点击等都没有颜色变化,请问这个应该问题出在哪里,自己看了很久都没找到><!!