语言

XhtmlTextWriter.ElementSpecificAttributes 属性

定义

Hashtable获取包含特定于元素的属性的对象。

protected:
 property System::Collections::Hashtable ^ ElementSpecificAttributes { System::Collections::Hashtable ^ get(); };
protected System.Collections.Hashtable ElementSpecificAttributes { get; }
member this.ElementSpecificAttributes : System.Collections.Hashtable
Protected ReadOnly Property ElementSpecificAttributes As Hashtable

属性值

包含 Hashtable 特定于元素的属性的对象。

注解

AddRecognizedAttribute使用该方法将已识别的属性添加到 XHTML 元素。 若要删除 XHTML 元素上的常见属性,请使用 RemoveRecognizedAttribute 该方法。

创建类的新实例 XhtmlTextWriter 时, Hashtable 将用下表中显示的属性填充特定于元素的属性的对象。

元素 特性
<a> accesskey、href、charset、hreflang、rel、type、rev、title、tabindex
<base> href
<blockquote> cite
<br> id、class、title
<form> action、method、enctype
<head> xml:lang
<html> version、xml:lang、xmlns
<img> src、alt、width、longdesc、height
<input> size、accesskey、title、name、type、disabled、value、src、checked、maxlength、tabindex
<label> accesskey、for
<li> value
<link> hreflang、rev、type、charset、rel、href、media
<meta> content、name、xml:lang、http-equiv、scheme
<object> codebase、classid、data、standby、name、type、height、archive、declare、width、tabindex、codetype
<ol> start
<optgroup> label、disabled
<option> selected、value
<param> id、name、valuetype、value、type
<pre> xml:space
<q> cite
<select> name、tabindex、disabled、multiple、size
<style> xml:lang、xml:space、type、title、media
<table> width、summary
<textarea> name、cols、accesskey、tabindex、rows
<td> headers、align、rowspan、colspan、axis、scope、abbr、valign
<th> headers、align、rowspan、colspan、axis、scope、abbr、valign
<title> xml:lang
<tr> align、valign

有关呈现的元素和样式的详细信息,请参阅 万维网联合会(W3C)网站上的 XHTML 模块化规范。

适用于

另请参阅