Doctype 枚举

定义

警告

此 API 现已过时。

指定要呈现给页或控件的 XhtmlTextWriter 类的 XHTML 标记的类型。Specifies the type of XHTML markup for an XhtmlTextWriter class to render to the page or control. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public enum class Doctype
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see https://go.microsoft.com/fwlink/?LinkId=157231.")]
public enum Doctype
type Doctype = 
Public Enum Doctype
继承
属性

字段

NotSet 0

未确定。Not determined.

Wml20 3

WML 2.0 文档。WML 2.0 document.

XhtmlBasic 1

基本 XHTML 格式。Basic XHTML format. 此格式不支持框架和样式。This format does not support frames and styles.

XhtmlMobileProfile 2

XHTML Mobile Profile 格式。XHTML Mobile Profile format.

注解

当指定 Doctype 枚举值之一作为 SetDocType 方法调用中的参数时,该值强制文本编写器遵从该 XHTML 文档类型的限制。When you specify one of the Doctype enumeration values as the parameter in a SetDocType method call, the value forces the text writer to adhere to the restrictions of that XHTML document type.

XHTML Basic 是 XHTML 1.0 的移动版,支持 xhtml 模块的最小数目。XHTML Basic is the mobile version of XHTML 1.0 and supports the minimum number of XHTML modules to be an XHTML document. 它适用于不支持全套 XHTML 功能的客户端,例如移动电话、个人数字助理(Pda)、寻呼和机顶盒。It is designed for clients that do not support the full set of XHTML features, such as mobile phones, personal digital assistants (PDAs), pagers, and set-top boxes. 使用 XHTML Basic,可以在客户端的最大数量上提供文档,包括各种不同显示格式和演示功能的移动电话。With XHTML Basic, a document can be presented on the maximum number of clients, including a wide range of mobile phones with different display formats and presentation capabilities.

XHTML 移动配置文件将多个其他元素和属性从完整的 XHTML 1.0 添加到 XHTML Basic,其中包括附加的表示法元素和对内部样式表的支持。XHTML Mobile Profile adds several additional elements and attributes to XHTML Basic from the full XHTML 1.0, including additional presentation elements and support for internal style sheets.

无线标记语言(WML)2.0 通过提供对级联样式表的支持,扩展了 XHTML 基本和 XHTML 移动配置文件。Wireless Markup Language (WML) 2.0 expands on both XHTML Basic and XHTML Mobile Profile by providing support for cascading style sheets.

适用于

另请参阅