jqGrid不支持IE8的解决办法(Grid can not be used in this ('quirks') mode)
来源:互联网 发布:mysql时间格式 编辑:程序博客网 时间:2024/06/06 01:21
Web 世界中存在许多不同的文档。只有了解文档的类型,浏览器才能正确地显示文档。HTML 也有多个不同的版本,只有完全明白页面中使用的确切 HTML 版本,浏览器才能完全正确地显示出 HTML 页面。这就是 <!DOCTYPE> 的用处。<!DOCTYPE> 不是 HTML 标签。它为浏览器提供一项信息(声明),即 HTML 是用什么版本编写的。查看源码后发现
if(document.documentMode !== undefined ) { // IE only
if(document.documentMode <= 5) {
alert("Grid can not be used in this ('quirks') mode!");
return;
}
}
其中document.documentMode值 查资料后解释如下
除ie8以外的任何浏览器上返回的值是undefined.
ie8上面如果页面没有标准头的话,返回值为5。
ie8上面如果页面有标准头的话:
将返回7或者8,确定使用的是ie7渲染模式或者是ie8渲染模式。
寻思了下 估计是文件头这类问题
仔细与其他文件对比后
增加<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> 对于文档声明后 不报此错
有的创建jsp页面会自带这个文档声明,关键版本不是XHTML1.0的,所以换成这个版本才可以使用哦!
- jqGrid不支持IE8的解决办法(Grid can not be used in this ('quirks') mode)
- jqGrid不支持IE8的解决办法(Grid can not be used in this ('quirks') mode)
- jqGrid ---Grid can not be used in this ('quirks...
- Grid can not be used in this ('quirks') mode!
- Wildcard App IDs can not be used to create in house provisioning的解决办法
- " 'this' may not be used in this context"
- wireshark:no interface can be used for capturing in this system with the current configuration
- 有关ie浏览器怪异模式(Quirks Mode)对 HTML 页面的影响的解决办法
- Words could not be used in C++
- wireshark on mac :::no interface can be used for capturing in this system with the current configura
- mac上wireshark:No interface can be used for capturing in this system with the current configuration
- QT “Timers can only be used with threads started with QThread”的解决办法~
- column can not be re-read 问题的解决办法
- Wildcard App IDs can not be used to create in House provisioning profiles.Please use an Explicit App
- Array constants can only be used in initializers
- “quirks mode”&“strict mode”的一些整理
- can’t refactor code used in this language
- 怪异模式(Quirks Mode)对 HTML 页面的影响
- 微信公众平台开发模式网页的BUG
- 7中排序算法的性能比较
- (译)加入敌人和战斗:如果使用cocos2d制作基于tiled地图的游戏:第三部分
- hdu/hdoj 1002 A + B Problem II
- 【骏河】BDC总结
- jqGrid不支持IE8的解决办法(Grid can not be used in this ('quirks') mode)
- 设计模式--装饰者模式
- S3C6410 MFC decode H.264流程
- P-code学习
- 合并查询
- 轻松使用线程: 不共享有时是最好的 from ibm developerworks
- 单源最短路径 : Dijkstra 算法
- 将h264流组成RTP包进行发送
- 深入理解Java内存模型(七)——总结