html 的 ContentType
ContentTypes : "svg","image/svg+xml"
ContentTypes : "ez","application/andrew-inset"
ContentTypes : "hqx","application/mac-binhex40"
ContentTypes : "cpt","application/mac-compactpro"
ContentTypes : "doc","application/msword"
ContentTypes : "bin","application/octet-stream"
ContentTypes : "dms","application/octet-stream"
ContentTypes : "lha","application/octet-stream"
ContentTypes : "lzh","application/octet-stream"
ContentTypes : "exe","application/octet-stream"
ContentTypes : "class","application/octet-stream"
ContentTypes : "so","application/octet-stream"
ContentTypes : "dll","application/octet-stream"
ContentTypes : "oda","application/oda"
ContentTypes : "pdf","application/pdf"
ContentTypes : "ai","application/postscript"
ContentTypes : "eps","application/postscript"
ContentTypes : "ps","application/postscript"
ContentTypes : "smi","application/smil"
ContentTypes : "smil","application/smil"
ContentTypes : "mif","application/vnd.mif"
ContentTypes : "xls","application/vnd.ms-excel"
ContentTypes : "ppt","application/vnd.ms-powerpoint"
ContentTypes : "wbxml","application/vnd.wap.wbxml"
ContentTypes : "wmlc","application/vnd.wap.wmlc"
ContentTypes : "wmlsc","application/vnd.wap.wmlscriptc"
ContentTypes : "bcpio","application/x-bcpio"
ContentTypes : "vcd","application/x-cdlink"
ContentTypes : "pgn","application/x-chess-pgn"
ContentTypes : "cpio","application/x-cpio"
ContentTypes : "csh","application/x-csh"
ContentTypes : "dcr","application/x-director"
ContentTypes : "dir","application/x-director"
ContentTypes : "dxr","application/x-director"
ContentTypes : "dvi","application/x-dvi"
ContentTypes : "spl","application/x-futuresplash"
ContentTypes : "gtar","application/x-gtar"
ContentTypes : "hdf","application/x-hdf"
ContentTypes : "js","application/x-javascript"
ContentTypes : "skp","application/x-koan"
ContentTypes : "skd","application/x-koan"
ContentTypes : "skt","application/x-koan"
ContentTypes : "skm","application/x-koan"
ContentTypes : "latex","application/x-latex"
ContentTypes : "nc","application/x-netcdf"
ContentTypes : "cdf","application/x-netcdf"
ContentTypes : "sh","application/x-sh"
ContentTypes : "shar","application/x-shar"
ContentTypes : "swf","application/x-shockwave-flash"
ContentTypes : "sit","application/x-stuffit"
ContentTypes : "sv4cpio","application/x-sv4cpio"
ContentTypes : "sv4crc","application/x-sv4crc"
ContentTypes : "tar","application/x-tar"
ContentTypes : "tcl","application/x-tcl"
ContentTypes : "tex","application/x-tex"
ContentTypes : "texinfo","application/x-texinfo"
ContentTypes : "texi","application/x-texinfo"
ContentTypes : "t","application/x-troff"
ContentTypes : "tr","application/x-troff"
ContentTypes : "roff","application/x-troff"
ContentTypes : "man","application/x-troff-man"
ContentTypes : "me","application/x-troff-me"
ContentTypes : "ms","application/x-troff-ms"
ContentTypes : "ustar","application/x-ustar"
ContentTypes : "src","application/x-wais-source"
ContentTypes : "xhtml","application/xhtml+xml"
ContentTypes : "xht","application/xhtml+xml"
ContentTypes : "zip","application/zip"
ContentTypes : "au","audio/basic"
ContentTypes : "snd","audio/basic"
ContentTypes : "mid","audio/midi"
ContentTypes : "midi","audio/midi"
ContentTypes : "kar","audio/midi"
ContentTypes : "mpga","audio/mpeg"
ContentTypes : "mp2","audio/mpeg"
ContentTypes : "mp3","audio/mpeg"
ContentTypes : "aif","audio/x-aiff"
ContentTypes : "aiff","audio/x-aiff"
ContentTypes : "aifc","audio/x-aiff"
ContentTypes : "m3u","audio/x-mpegurl"
ContentTypes : "ram","audio/x-pn-realaudio"
ContentTypes : "rm","audio/x-pn-realaudio"
ContentTypes : "rpm","audio/x-pn-realaudio-plugin"
ContentTypes : "ra","audio/x-realaudio"
ContentTypes : "wav","audio/x-wav"
ContentTypes : "pdb","chemical/x-pdb"
ContentTypes : "xyz","chemical/x-xyz"
ContentTypes : "bmp","image/bmp"
ContentTypes : "gif","image/gif"
ContentTypes : "ief","image/ief"
ContentTypes : "jpeg","image/jpeg"
ContentTypes : "jpg","image/jpeg"
ContentTypes : "jpe","image/jpeg"
ContentTypes : "png","image/png"
ContentTypes : "tiff","image/tiff"
ContentTypes : "tif","image/tiff"
ContentTypes : "djvu","image/vnd.djvu"
ContentTypes : "djv","image/vnd.djvu"
ContentTypes : "wbmp","image/vnd.wap.wbmp"
ContentTypes : "ras","image/x-cmu-raster"
ContentTypes : "pnm","image/x-portable-anymap"
ContentTypes : "pbm","image/x-portable-bitmap"
ContentTypes : "pgm","image/x-portable-graymap"
ContentTypes : "ppm","image/x-portable-pixmap"
ContentTypes : "rgb","image/x-rgb"
ContentTypes : "xbm","image/x-xbitmap"
ContentTypes : "xpm","image/x-xpixmap"
ContentTypes : "xwd","image/x-xwindowdump"
ContentTypes : "igs","model/iges"
ContentTypes : "iges","model/iges"
ContentTypes : "msh","model/mesh"
ContentTypes : "mesh","model/mesh"
ContentTypes : "silo","model/mesh"
ContentTypes : "wrl","model/vrml"
ContentTypes : "vrml","model/vrml"
ContentTypes : "css","text/css"
ContentTypes : "html","text/html"
ContentTypes : "htm","text/html"
ContentTypes : "asc","text/plain"
ContentTypes : "txt","text/plain"
ContentTypes : "rtx","text/richtext"
ContentTypes : "rtf","text/rtf"
ContentTypes : "sgml","text/sgml"
ContentTypes : "sgm","text/sgml"
ContentTypes : "tsv","text/tab-separated-values"
ContentTypes : "wml","text/vnd.wap.wml"
ContentTypes : "wmls","text/vnd.wap.wmlscript"
ContentTypes : "etx","text/x-setext"
ContentTypes : "xsl","text/xml"
ContentTypes : "xml","text/xml"
ContentTypes : "mpeg","video/mpeg"
ContentTypes : "mpg","video/mpeg"
ContentTypes : "mpe","video/mpeg"
ContentTypes : "qt","video/quicktime"
ContentTypes : "mov","video/quicktime"
ContentTypes : "mxu","video/vnd.mpegurl"
ContentTypes : "avi","video/x-msvideo"
ContentTypes : "movie","video/x-sgi-movie"
ContentTypes : "ice","x-conference/x-cooltalk"
ContentTypes : "form","application/x-www-form-urlencoded"
分享到:
相关推荐
HTML中的ContentType Content-Type,连接类型,一般是指网页中存在的Content-Type,用于定义网络文件的类型和网页的编码,决定浏览器将以什么形式、什么编码读取这个文件。 例如将:ContentType设置为image/jpeg,...
例如,如果我们设置 ContentType 为 "text/html; charset=UTF-8",客户端浏览器就会将从服务器端发送来的内容解析成 HTML 文档,并使用 UTF-8 编码来解码。 现在,让我们来看看各种 ContentType 的类型: 1. ...
例如,当一个响应的`ContentType`设置为"text/html"时,浏览器会将其解释为HTML文档并尝试渲染成网页。 #### 二、ContentType的设置方法 在ASP.NET中,可以通过`Response.ContentType`属性来设置HTTP响应的MIME...
正确设置`ContentType`能够确保浏览器知道如何处理服务器返回的数据,例如,将数据解释为HTML页面、JPEG图像、CSV文件等。 以下是一些常见的`ContentType`类型: 1. `text/html`:表示内容为HTML文档,这是最常见...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> ``` 在上面的例子中,`pageEncoding`设置为`UTF-8`,这意味着JSP页面中的所有文本都会按照UTF-8的编码方式进行处理。 ...
例如,如果`ContentType`设置为`text/html`,则表示发送的是HTML文档,浏览器会将其解析并渲染为网页。如果设置为`image/jpeg`,则表示发送的是JPEG图像,浏览器会显示该图像。其他常见的`ContentType`类型还包括: ...
### 文件下载及Web文件的ContentType类型详解 在Web开发中,处理文件下载是常见的需求之一。为了确保用户能够正确地下载文件并且浏览器能够正确解析文件类型,开发者需要正确设置HTTP响应头中的`Content-Type`字段...
- **说明**:ASP (Active Server Pages) 文件是包含动态HTML页面的服务器端脚本文件。 - **".au":"audio/basic"** - **说明**:AU文件是一种早期的音频文件格式,主要用于Unix系统中。 - **".avi":"video/avi"** ...
HTML(HyperText Markup Language)是用于创建网页的标准标记语言,而`ContentType`是HTTP协议中定义的一种机制,用于标识网络资源的类型。在HTML中,`ContentType`主要体现在HTTP响应头的`Content-Type`字段,它...
例如,在中文环境下,为了避免浏览器显示乱码,通常会设置`contentType="text/html; charset=UTF-8"`。 - **示例**: ```jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF...
例如,`contentType="text/html; charset=UTF-8"`表示发送的数据是HTML格式,并且使用的字符集是UTF-8。这个属性不仅影响浏览器对内容的解析,还影响POST请求中提交的数据编码。如果不正确地设置contentType,可能会...
const [ contentType ] = hthvParse ( 'text/html;charset=utf-8' ) ; contentType . v ; // text/html contentType . p . charset . v ; // utf-8 const [ product , sysInfo , platform , version ] = ...
例如,如果页面内容是GBK编码的,则需要设置`pageEncoding="GBK"`,同时设置`contentType="text/html;charset=GBK"`,以确保从头到尾的编码一致性。 总的来说,`pageEncoding` 关注的是JSP文件的内部编码,而`...
### Web文件的ContentType类型大全解析 在Web开发与网络传输中,`Content-Type`是一个至关重要的HTTP头部字段,用于指示资源的数据类型。正确设置`Content-Type`有助于浏览器或服务器理解如何处理接收到的数据,...
新springmvc的json默认返回contentType是application/json,会导致ie等认为需要调用application打开,而不是当作文本处理。...改包已经修改了返回的contentType为text/html,前台脚本可以按照以前的处理方式处理
Response.ContentType = "text/html"; Response.Write("<html><body><h1>Hello, World!</h1></body></html>"); Response.End(); ``` 3. **Razor视图引擎**: 在ASP.NET MVC中,Razor视图引擎允许开发者用C#...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <html> ...
此外,`mx.controls.HTML`组件还提供了其他一些属性和方法,如`htmlText`属性(用于设置纯文本的HTML内容)、`contentType`属性(用于指定内容类型,如"text/html"或"text/xml")以及`navigateToURL()`方法(用于在...
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> RequestDispatcher rd = request.getRequestDispatcher("target.jsp"); rd.forward(request, response); %> ``` ...
最后,通过`Response.ContentType`设置HTTP响应的内容类型为HTML,`Response.Write`将`htmlContent`的值写入到响应中,从而向浏览器发送完整的HTML页面。 在服务器上运行这个ASP文件,它会根据代码中的逻辑生成相应...