語言

Doctype 列舉

定義

警告

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 http://go.microsoft.com/fwlink/?LinkId=157231.

指定要轉譯至頁面或控件之 XhtmlTextWriter 類別的 XHTML 標記類型。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

public enum class Doctype
public enum 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 http://go.microsoft.com/fwlink/?LinkId=157231.")]
public enum Doctype
type 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 http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type Doctype = 
Public Enum Doctype
繼承
屬性

欄位

名稱 值 Description
NotSet 0

不確定。

XhtmlBasic 1

基本的 XHTML 格式。 此格式不支援框架與樣式。

XhtmlMobileProfile 2

XHTML 行動設定檔格式。

Wml20 3

WML 2.0 文件。

備註

當你在方法呼叫中Doctype指定列SetDocType舉值作為參數時,該值會強制文字撰寫者遵守該 XHTML 文件類型的限制。

XHTML Basic 是 XHTML 1.0 的行動版本,支援 XHTML 文件所需的最低數量 XHTML 模組。 它專為不支援完整 XHTML 功能(如手機、個人數位助理(PDA)、呼叫器及機上盒的客戶設計。 使用 XHTML Basic 時,文件可在最多的用戶端上呈現,包括擁有不同顯示格式與呈現功能的各種手機。

XHTML 行動設定檔從完整 XHTML 1.0 版本中為 XHTML Basic 新增了多項元素與屬性,包括額外的呈現元素及對內部樣式表的支援。

無線標記語言(WML)2.0 在 XHTML Basic 與 XHTML 行動設定檔基礎上擴充,提供層疊樣式表支援。

適用於

另請參閱