js 利用onMouseOver与onmouseout鼠标变量div背景样式代码
<html xmlns="http://www.jzread.com/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>js 利用onMouseOver与onmouseout鼠标变量div背景样式代码</title>
<style type="text/css">
.onecity1{
background:#CCCCCC;
height:150px;
width:200px;
}
.onecity2{
background:#999900;
height:150px;
width:200px;
}
</style>
</head>
<body>
<div class="onecity1" onMouseOver="this.className='onecity2'" onMouseOut="this.className='onecity1'" >
fdafdafsa这里主要是利用js 利用onMouseOver与onmouseout鼠标变量div背景样式代码
</div>
</body>
</html>
时间: 2024-09-25 05:15:35