IE9以Quirks 5.5模式渲染Twitter Bootstrap

时间:2012-11-06 15:36:20

标签: asp.net html html5 twitter-bootstrap

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

<!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>

0 个答案:

没有答案