怎样实现鼠标移过去背景颜色就变换的这样的效果?
发布网友
发布时间:2022-04-21 03:55
我来回答
共1个回答
热心网友
时间:2022-04-21 05:25
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<style type="text/css">
.tt
{background:#C5E9FF;border:1px solid #224787}
.aa
{background:#FFFF99;border:1px solid #224787}
</style>
</HEAD>
<BODY>
<input type="text" class="tt" onmouseover="this.className='aa'" onmouseout="this.className='tt'">
</BODY>
</HTML>
参考资料:http://www.eleven.com.cn