【问题标题】:Browser compatibility for MVC3 ApplicationMVC3 应用程序的浏览器兼容性
【发布时间】:2012-10-20 12:20:40
【问题描述】:

我在我的页面中使用 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>

【问题讨论】:

  • 请考虑,如果有人可以帮助您解决您的问题,他们必须能够理解:您的问题是什么,以及所需的解决方案。你越容易让别人理解问题,他们就越容易提供解决方案。
  • 在这里发布一个小复制
  • 好的,我的问题是在我的 MVC3 应用程序中遇到浏览器兼容性问题,我在其中使用 JQgrid 和 css 引导样式进行按钮和设计。当我运行该应用程序时,它在 Mozila 中变得完美,但是对于 chrome,它有点出现,在 IE 中,网格本身会转到窗口的右侧,我不知道它为什么会发生。如果有什么问题,对不起我的英语

标签: html asp.net-mvc-3 razor jqgrid


【解决方案1】:

浏览器可能有不同的 JavaScript 引擎,渲染 Html 和 css 不同,但 ASP 与浏览器无关。

【讨论】:

    猜你喜欢
    • 2014-03-27
    • 1970-01-01
    • 1970-01-01
    • 2023-04-08
    • 2018-11-25
    • 2012-10-19
    • 2012-08-09
    相关资源
    最近更新 更多