在IE中运行最新的渲染模式:
<meta http-equiv="x-ua-compatible" content="IE=edge" />
IE版本低于IE9时,为了兼容性IE9一下的浏览器,可以添加一下代码:
<!--HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries-->
<!--WARNING: Respond.js doesn't work if you view the page via file://-->
<!--[if It IE 9]-->
<!--<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>-->
<!--<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>-->
<!--[endif]-->