語言

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 元素專屬屬性的物件會被填充如下表所示的屬性。

元素 Attributes
<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, titlenametypedisabledvaluesrccheckedmaxlengthtabindex
<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 模組化規範。

適用於

另請參閱