刚遇到的一个问题,在IE6里点击.docx、.xlsx、.pptx扩展名的文件下载链接,弹出保存框时后缀名变成.zip了,Firefox下正常,无语了。 网上搜搜,找了原因 伟大的Microsoft迄今为止还没有修复这个bug,自作多情的把自己发明的docx,xlsx等格式保存成zip文件,虽然那些文件的实质就是zip,但是绝不能容忍IE下载文件时把它们当做zip,总不能告诉用户让他们自己把下载好的文件改回docx或xlsx后缀吧,麻烦。 解决办法:
01020304050607080910111213141516171819202122 AddType application/vnd.ms-word.document.macroEnabled.12 .docm AddType application/vnd.openxmlformats .docx .pptx .xlsx AddType application/vnd.openxmlformats-officedocument.presentationml.presentation .pptx AddType application/vnd.openxmlformats-officedocument.spreadsheetml.sheet .xlsx AddType application/vnd.openxmlformats-officedocument.wordprocessingml.document .docx AddType application/vnd.ms-word.template.macroEnabled.12 .dotm AddType application/vnd.openxmlformats-officedocument.wordprocessingml.template .dotx AddType application/vnd.ms-powerpoint.template.macroEnabled.12 .potm AddType application/vnd.openxmlformats-officedocument.presentationml.template .potx AddType application/vnd.ms-powerpoint.addin.macroEnabled.12 .ppam AddType application/vnd.ms-powerpoint.slideshow.macroEnabled.12 .ppsm AddType application/vnd.openxmlformats-officedocument.presentationml.slideshow .ppsx AddType application/vnd.ms-powerpoint.presentation.macroEnabled.12 .pptm AddType application/vnd.ms-excel.addin.macroEnabled.12 .xlam AddType application/vnd.ms-excel.sheet.binary.macroEnabled.12 .xlsb AddType application/vnd.ms-excel.sheet.macroEnabled.12 .xlsm AddType application/vnd.ms-excel .xlt .xla AddType application/vnd.openxmlformats-officedocument.spreadsheetml.template .xltx AddType application/vnd.ms-excel.template.macroEnabled.12 .xltm AddType application/vnd.ms-xpsdocument .xps AddType application/application/vnd.ms-powerpoint .ppt .pot .pps .ppa AddType application/msword .doc .dot SERVER端解决办法:以下引用 |