- 如何让浏览器正确显示word 文件格式?
-
发布时间:2010-10-29 13:47:06
发布时间:2010-10-29 13:47:06
为了正确处理word 等格式,你需要在HTML文件中设置好该文件类型,比如:
<meta http-equiv="Content-Type" content="application/msword">
还有其它经常设置的文件类型:
application/msword Microsoft Word Document
application/pdf PDF Document
application/wordperfect6.0 WordPerfect 6.0 Document
application/zip ZIP archive
audio/x-wav WAV audio format
audio/midi MIDI audio format
audio/x-pn-realaudio RealAudio
image/gif GIF image format
image/jpeg JPEG image format
image/png PNG image format
text/html HTML document
text/plain Plain text
video/mpeg MPEG video format
video/quicktime QuickTime video format
video/x-msvideo AVI video format