XhtmlConformanceSection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
配置分区 xhtmlConformance 。 此类不能被继承。
public ref class XhtmlConformanceSection sealed : System::Configuration::ConfigurationSection
public sealed class XhtmlConformanceSection : System.Configuration.ConfigurationSection
type XhtmlConformanceSection = class
inherit ConfigurationSection
Public NotInheritable Class XhtmlConformanceSection
Inherits ConfigurationSection
- 继承
注解
该 XhtmlConformanceSection 类提供了一种以编程方式访问和修改 xhtmlConformance 配置文件部分的方法。
注释
ASP.NET 允许你创建符合 XHTML 1.1 标准的网页。 有关 XHTML 1.1 标准的详细信息,请参阅 W3C 站点。 默认情况下,在使用支持 HTML 4.0 或更高版本的浏览器时,ASP.NET 页面和控件呈现与 XHTML 1.0 过渡标准兼容的标记。 但是,在某些情况下,你可能不希望 ASP.NET 呈现 XHTML 标记。 如果现有页面依赖于通常被 XHTML 禁止的标记或属性,则通常如此。
继承者说明
仅将可能中断现有应用程序的呈现更改还原为旧行为。 没有任何机制可以还原所做的所有更改,以符合 XHTML 规范。
构造函数
| 名称 | 说明 |
|---|---|
| XhtmlConformanceSection() |
使用默认参数初始化类的新实例 XhtmlConformanceSection 。 |