bootstrap是在html5的基础上实现的,要想让IE8兼容,首先要让器兼容html5 ,然后兼容bootstrap,在head中加入以下代码:
最好加载引用额css后边
<!-- IE8兼容性处理代码 begin-->
<!--[if lt IE 9]>
<script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Respond.js proxy on external server -->
<link href="http://externalcdn.com/respond-proxy.html" id="respond-proxy" rel="respond-proxy" />
<!-- Respond.js redirect location on local server -->
<link href="<%=path%>/base/bootstrap/js/respond.proxy.gif" id="respond-redirect" rel="respond-redirect" />
<!-- Respond.js proxy script on local server -->
<script src="<%=path%>/base/bootstrap/js/respond.proxy.js"></script>
<!-- IE8兼容性处理代码 end -->
用到的文件:http://download.csdn.net/detail/u012116457/9449344
如果没效果,尝试调整引入文件的先后顺序