关于在IE6和IE8下获取Excel2007的ContectType不同的问题
2014-11-19 16:06
253 查看
Excel 2007在IE6和IE8下获取的ContectType不一样,因此在存储这个值时字段的长度要注意喽~
IE6: application/x-zip-compressed
IE8: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
百度了一下:
有如下描述:原文链接:http://apps.hi.baidu.com/share/detail/50791926
1、在 IE6 IE7 IE8 中,若一个页面被打开时接收到的响应头的 content-type 为 text/plain,浏览器会尝试嗅探页面文件内实际内容来判断是否可能为一个 HTML 文档,若是则会以 text/html 的方式将页面作为 HTML 文档解释,而不是将其作为纯文本内容处理。
2、docx、pptx等Office2007格式文件可能会被浏览器错误识别为zip格式文件下载或打开
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" (for .docx files)
"application/vnd.openxmlformats-officedocument.wordprocessingml.template" (for .dotx files)
"application/vnd.openxmlformats-officedocument.presentationml.presentation" (for .pptx files)
"application/vnd.openxmlformats-officedocument.presentationml.slideshow" (for .ppsx files)
"application/vnd.openxmlformats-officedocument.presentationml.template" (for .potx files)
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" (for .xlsx files)
"application/vnd.openxmlformats-officedocument.spreadsheetml.template" (for .xltx files)
IE6: application/x-zip-compressed
IE8: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
百度了一下:
有如下描述:原文链接:http://apps.hi.baidu.com/share/detail/50791926
1、在 IE6 IE7 IE8 中,若一个页面被打开时接收到的响应头的 content-type 为 text/plain,浏览器会尝试嗅探页面文件内实际内容来判断是否可能为一个 HTML 文档,若是则会以 text/html 的方式将页面作为 HTML 文档解释,而不是将其作为纯文本内容处理。
2、docx、pptx等Office2007格式文件可能会被浏览器错误识别为zip格式文件下载或打开
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" (for .docx files)
"application/vnd.openxmlformats-officedocument.wordprocessingml.template" (for .dotx files)
"application/vnd.openxmlformats-officedocument.presentationml.presentation" (for .pptx files)
"application/vnd.openxmlformats-officedocument.presentationml.slideshow" (for .ppsx files)
"application/vnd.openxmlformats-officedocument.presentationml.template" (for .potx files)
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" (for .xlsx files)
"application/vnd.openxmlformats-officedocument.spreadsheetml.template" (for .xltx files)
相关文章推荐
- 整理关于IE6、IE7、IE8、Firefox兼容性CSS HACK问题
- 整理关于IE6、IE7、IE8、Firefox兼容性CSS HACK问题
- 关于jsp中<input type="file">获取路径问文件名,获取完全路径问题
- 关于ie6和ie8遇到的一些问题
- 关于jsp中<input type="file">获取路径问文件名,获取完全路径问题
- 关于从不同的URL获取JSON数据时Ext.data.Store反映迟缓问题的解决
- 关于mp4文件在IE6-IE8里需要完全缓冲完才能播放的问题
- 关于使用input type=file 标签上传文件的注意细节(上传文件 无法获取文件 问题)
- [置顶]关于使用input type=file 标签上传文件的注意细节(上传文件 无法获取文件 问题)
- 关于IE6无法升级为IE7或者IE8的问题
- IE8与IE6关于div的居中问题
- 黄聪:DIV+CSS建站经验总结,不同版本IE下CSS布局bug问题(IE5、IE6、IE7、IE8、火狐Firefox兼容)
- 关于ie6,ie7,ie8,firefox 的div兼容问题
- 关于ie8获取高度兼容问题
- 关于不同页面获取文本值应用[opener 用法]
- 关于解决无法获取AJAX中无法获取XML返回的问题
- 安装IE8在控制面板里面删除之后进不去桌面,提示找不到-IESetting.dll 解决办法(解决IE8卸载不了的问题,返回IE7 ,返回IE6),从IE8回到IE7的方法.
- VC下关于debug和release的不同的问题总结
- 获取主机名称是关于SetComputerNameEx函数的使用问题!
- 关于数据表类型(Table Type)的问题