0

我的 html5.Master 文件中有以下代码,用于使用 Twitter Bootstrap 的 C# ASP.NET 页面。IE 9 仍以 Quirks 5.5 模式呈现某些页面。还有什么其他方法可以让它们正确渲染和打印吗?

<!DOCTYPE html>
<html lang="en">
<head runat="server">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title></title>
    <meta name="description" content="">
    <meta name="author" content="">
    <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link href="bootstrap.css" rel="stylesheet">

      <!-- CSS concatenated and minified via ant build script-->
      <link href="<%=Page.ResolveUrl("~/css/bootstrap.css?v=2")%>" rel="stylesheet">
      <link href="<%=Page.ResolveUrl("~/css/docs.css?v=2")%>" rel="stylesheet">
      <link href="<%=Page.ResolveUrl("~/css/prettify.css?v=2")%>" rel="stylesheet">
      <link rel="stylesheet" media="print" href="<%=Page.ResolveUrl("~/css/print.css?v=2")%>" />

      <script src="js/libs/modernizr-2.0.6.min.js"></script>
      <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
      <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
      <script>      window.jQuery || document.write("<script src='/scripts/libs/jquery-1.7.1.min.js'>\x3C/script>")</script>

    <!--[if IE 6]>    
        <link href="ie6.css" rel="stylesheet">
    <![endif]-->

</head>
4

0 回答 0