下面我来分享一下我通过做作业学会的一点技巧吧:
鼠标悬停变颜色效果:
<div id="unameNot" class="txt-info" οnmοuseοver="this.style.color='Orange'" οnmοuseοut="this.style.color='Gray'">
6~18个字符,包括字母、数字、下划线,以字母开头,字母或数字结尾</div>
链接:鼠标没有移上去的时候没有下划线,当移上去的时候有下划线:
a
{
text-decoration:none;
}
a:hover
{
text-decoration:underline;
}