使用火狐浏览器访问easyUI的问题
[size=16px]本人初学jquery easy-ui ,在搭建测试环境后,使用最简单的$.messager.alert("", "") 就出现问题,使用360浏览器访问没有问题,但是firefox访问的时候发现对话框在上面,而不是在浏览器的中间位置。
请各位大神帮忙回复我这个有点弱的问题,感激不尽![/size]
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'register.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!-- 使用jquery-easyUI需要引入的js和css -->
<script type="text/javascript" src="js/jquery-easyui-1.4/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.4/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="js/jquery-easyui-1.4/themes/icon.css" />
<script type="text/javascript" src="js/jquery-easyui-1.4/jquery.easyui.min.js"></script>
<script type="text/javascript" src="js/jquery-easyui-1.4/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$.messager.confirm("Confirm", "Are you sure you want to delete record?", function(r) {
if(r) {
$.messager.alert("ok");
}
});
})
</script>
</head>
<body>
hello!
</body>
</html>