有如下代码:<!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=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.test{width:300px;
height:250px;
background-color:#CCC;
}
</style>
</head><body>
<div id="" class="test" onmouseover="alert('onmouseover');" >Test</div>
</body>
</html>
上面的代码在IE中先把鼠标放到DIV上面,这时候按F5刷新页面,会自动触发
DIV的onmouseover事件,在火狐中则不触发。
稍微动一下鼠标就会触发,我想它跟火狐一样。有没有解决办法???