用Bootstrap做了前臺頁面,後來發現在IE9下,很多頁面都亂了。記得上bootstrap官網說是支持IE9的,上百度查了好半天,發現了幾個方法,其中一個立竿見影地奏效了:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
如果是兼容ie9以下:
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="http://apps.bdimg.com/libs/html5shiv/3.7/html5shiv.min.js"></script>
<script src="http://apps.bdimg.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->