本文主要是介绍MIME类型定义以及常用的类型,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
<p><span style="font-family: Arial, Helvetica, sans-serif;">一、定义</span></p>
<span style="font-family: monospace; white-space: pre; background-color: rgb(240, 240, 240);">MIME类型就是设定某种扩张名的文件用一种应用程序来打开的方式类型,当该扩展名类文件被访问的时候,浏览器会自动使用指定的应用程序来打开。多用于指定客户端自定义的文件名,以及一些媒体文件的打开方式。</span>
<pre name="code" class="java">二、常用类型
.doc application/msword
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
.rtf application/rtf
.xls application/vnd.ms-excel application/x-excel
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.ppt application/vnd.ms-powerpoint
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
.pps application/vnd.ms-powerpoint
.ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow
.pdf application/pdf
.swf application/x-shockwave-flash
.dll application/x-msdownload
.exe application/octet-stream
.msi application/octet-stream
.chm application/octet-stream
.cab application/octet-stream
.ocx application/octet-stream
.rar application/octet-stream
.tar application/x-tar
.tgz application/x-compressed
.zip application/x-zip-compressed
.z application/x-compress
.wav audio/wav
.wma audio/x-ms-wma
.wmv video/x-ms-wmv
.mp3 .mp2 .mpe .mpeg .mpg audio/mpeg
.rm application/vnd.rn-realmedia
.mid .midi .rmi audio/mid
.bmp image/bmp
.gif image/gif
.png image/png
.tif .tiff image/tiff
.jpe .jpeg .jpg image/jpeg
.txt text/plain
.xml text/xml
.html text/html
.css text/css
.js text/javascript
.mht .mhtml message/rfc822
这篇关于MIME类型定义以及常用的类型的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!