bootatrap3下兼容ie8解决方法
2016-07-29 11:50
232 查看
bootstrap前端框架美观,而ie8是不兼容的。
兼容解决方案如下(以下改动不影响其它浏览器):
1.加上
2.加上
3.加上
4.jquery选用1版本的
5.ie8下不能用window.innerHeight与innerWidth。
换为document.documentElement.clientHeight与document.documentElement.clientWidth。
兼容解决方案如下(以下改动不影响其它浏览器):
1.加上
<!DOCTYPE html>
2.加上
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" /> <meta http-equiv="X-UA-Compatible" content="IE=8" />
3.加上
<!--[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]-->
4.jquery选用1版本的
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
5.ie8下不能用window.innerHeight与innerWidth。
换为document.documentElement.clientHeight与document.documentElement.clientWidth。
相关文章推荐
- css javascript等兼容IE6,IE7,IE8,IE9,FIREFOX,Chrome等浏览器详细解决方法
- 网页在IE8 下不兼容的问题解决方法(图)
- 网站制作---eWebeditor不兼容IE8问题的解决方法
- 【技术】解决IE(IE6/IE7/IE8)不兼容HTML5标签的方法
- 2013年ie6,ie7,ie8 css bug兼容解决方法集合
- Css兼容IE8版本的解决方法
- ie6,ie7,ie8 css bug兼容解决方法
- easyui不兼容ie8解决方法
- IE6,IE7,IE8 css bug汇总以及兼容解决方法
- IE8的JavaScript点击事件(onclick)不兼容的解决方法
- IE8 兼容模式 解决方法
- ie6,ie7,ie8 css bug兼容解决方法
- 解决eWebEditor在线文本编辑器在IE8下不兼容的方法
- 网站制作---eWebeditor不兼容IE8问题的解决方法
- Oracle EBS不兼容IE8问题解决方法
- ie6,ie7,ie8 css bug汇总以及兼容解决方法
- eWebeditor不兼容IE8问题的解决方法 .
- 完美解决IE(IE6/IE7/IE8)不兼容HTML5标签的方法
- IE8的JavaScript点击事件(onclick)不兼容的解决方法
- ie6,ie7,ie8 css bug兼容解决方法