我在我的页面中使用 Jqgrid。在 IE 中查看时它会转到屏幕的右侧角落,但对于 Chrome 和 Mozilla 来说没问题。
这是我的<head/>
代码部分。我计划在我的应用程序的所有页面中包含此内容:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>@ViewBag.Title</title>
<link href="../../Content/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../Content/css/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="../../Content/css/ui.jqgrid.css" />
<script type="text/javascript" src="../../Scripts/js/jquery.min.js"></script>
<script type="text/javascript" src="../../Scripts/js/bootstrap-dropdown.js"></script>
<script type="text/javascript" src="../../Scripts/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="../../Scripts/js/grid.locale-en.js"></script>
<script type="text/javascript" src="../../Scripts/js/jquery.jqGrid.src.js"></script>
</head>