XhtmlConformanceSection.Mode 属性

定义

获取或设置 Mode 属性。

public:
 property System::Web::Configuration::XhtmlConformanceMode Mode { System::Web::Configuration::XhtmlConformanceMode get(); void set(System::Web::Configuration::XhtmlConformanceMode value); };
[System.Configuration.ConfigurationProperty("mode", DefaultValue=System.Web.Configuration.XhtmlConformanceMode.Transitional)]
public System.Web.Configuration.XhtmlConformanceMode Mode { get; set; }
[<System.Configuration.ConfigurationProperty("mode", DefaultValue=System.Web.Configuration.XhtmlConformanceMode.Transitional)>]
member this.Mode : System.Web.Configuration.XhtmlConformanceMode with get, set
Public Property Mode As XhtmlConformanceMode

属性值

XhtmlConformanceMode

XhtmlConformanceMode 值之一。 默认值为 Transitional

属性

注解

默认情况下,在使用支持 HTML 4.0 或更高版本的浏览器时,ASP.NET 页面和控件呈现与 XHTML 1.0 过渡标准兼容的标记。 但是,在某些情况下,你可能不希望 ASP.NET XHTML 标记。 如果现有页面依赖于 XHTML 通常禁止的标记或属性,则通常如此。

适用于