有如下代码:<!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事件,在火狐中则不触发。
稍微动一下鼠标就会触发,我想它跟火狐一样。有没有解决办法???
<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事件,在火狐中则不触发。
稍微动一下鼠标就会触发,我想它跟火狐一样。有没有解决办法???
解决方案 »
- jquery加载函数的修改
- 求教:ExtGrid接受json中带dateTime类型数据格式问题
- 急需filter 在ie6,7,8中怎么写???
- js 类变量定义
- 高手推荐一下比较强的javascript运用的网站
- Object对象存储数据和Array对象存储数据有什么区别
- JS的一个小问题,简直是白给分
- 后台Action处理完后 jqgrid接收完数据怎样同时调用一个function
- <input type="hidden" name="selectRecord" value="${item.owners}"/>得不到值,结果是${item.
- 如何在关闭窗口时,不弹出确认对话框???window.close()........(谁会?我给分!!)
- JS在操作cookie时,cookie的过期日期存在Bug吗?
- jquery ajax异步交互问题~~
ie9
火狐3.6
你用的浏览器是什么版本的?有没有阻止什么东西啊?