為了正確處理word等格式,你需要在HTML文件中設(shè)置好該文件類型,比如:
<meta http-equiv="Content-Type" content="Application/msword">
還有其它經(jīng)常設(shè)置的文件類型:
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
更多信息請查看IT技術(shù)專欄