Doctype 列舉
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites。
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 | 無法得知。 |
Wml20 | 3 | WML 2.0 文件。 |
XhtmlBasic | 1 | 基本 XHTML 格式。 這個格式不支援框架 (Frame) 和樣式。 |
XhtmlMobileProfile | 2 | XHTML Mobile Profile 格式。 |
當您在 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 Mobile Profile 上展開。
產品 | 版本 (已過時) |
---|---|
.NET Framework | 2.0, 3.0, 3.5 (4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1) |