XhtmlTextWriter.ElementSpecificAttributes 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个包含特定于元素的特性的 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 模块化规范。