ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: DOM TableHeader ¶ÔÏó

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

HTML DOM
DOM Input Checkb..
DOM Input File ¶..
DOM Input Hidden..
DOM Input Passwo..
DOM Input Radio ..
DOM Input Reset ..
DOM Input Submit..
DOM Input Text ¶..
DOM Link ¶ÔÏó
DOM Location ¶ÔÏ..
DOM Meta ¶ÔÏó
DOM Navigator ¶Ô..
DOM ¶ÔÏó
DOM Option ¶ÔÏó
DOM Screen ¶ÔÏó
DOM Select ¶ÔÏó
DOM Style ¶ÔÏó
DOM Table ¶ÔÏó
DOM TableData ¶Ô..
DOM TableHeader ..

DOM TableHeader ¶ÔÏó


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:4730 :: ::

TableHeader ¶ÔÏó

The TableHeader object represents an HTML table header element. For each instance of an HTML <th> tag in a document, a TableHeader object is created.
TableHeader¶ÔÏó´ú±íÁËHTML±í¸ñµÄheaderÔªËØ¡£Ã¿µ±HTMLÎĵµÖгöÏÖ<th>±êÇ©¾ÍÓÐÒ»¸öTableHeader¶ÔÏó±»½¨Á¢ÆðÀ´

IE: Internet Explorer, F: Firefox, N: Netscape, W3C: World Wide Web Consortium (Internet Standard).

TableHeader ¶ÔÏóÊôÐÔ

Property
ÊôÐÔ
Description
ÃèÊö
IE  F N W3C
abbr Sets or returns an abbreviated text for the table header cell (for non-visual media such as speech or Braille)
ÉèÖûò·µ»Ø±í¸ñheaderµ¥ÔªµÄËõдÎÄ×Ö
6     Yes
accessKey Sets or returns the keyboard key to access the table header cell
ÉèÖûò·µ»Ø·ÃÎʱí¸ñheaderµ¥ÔªµÄ¿ì½Ý¼ü
5     No
align Sets or returns the horizontal alignment of data within the table header cell
ÉèÖûò·µ»Ø±í¸ñheaderµ¥ÔªÄÚµÄÊý¾ÝµÄˮƽ¶ÔÆë·½Ê½
4     Yes
axis Sets or returns a comma-delimited list of related table header cells (categories) 6     Yes
background Sets or returns the background image for the table header cell
ÉèÖûò·µ»Ø±í¸ñheaderµ¥ÔªµÄ±³¾°Í¼Æ¬
4     No
bgColor Sets or returns the background color for the table header cell
ÉèÖûò·µ»Ø±í¸ñheaderµ¥ÔªµÄ±³¾°ÑÕÉ«
4     Yes
borderColor Sets or returns the border color of the table header cell
ÉèÖûò·µ»Ø±í¸ñheaderµ¥ÔªµÄ±ß¿òÑÕÉ«
4     No
cellIndex Returns the position of the cell in the cells collection of a row
·µ»ØÐÐÖе¥Ôª¼¯ºÏÀïµ¥Ôª¸ñµÄλÖÃ
4     Yes
ch Sets or returns the alignment character for the table header cell
ÉèÖûò·µ»Ø±í¸ñheaderµ¥Ôª¶ÔÆëÌØÕ÷
6     Yes
chOff Sets or returns the offset of alignment character for the table header cell
ÉèÖûò»ñÈ¡¿ÉÓÃÓÚʵÏÖ¶ÔÏóµÄÄã×Ô¼ºµÄ chOff ¹¦ÄܵÄ×Ö·û´®¡£
6     Yes
colSpan Sets or returns the number of columns the table header cell should span
ÉèÖûò»ñÈ¡¶ÔÏóÓ¦¸Ã¿çÔ½µÄ±í¸ñÁÐÊý¡£
4     Yes
headers Sets or returns a list of space-separated header cell ids
ÉèÖûò»ñȡΪ¶ÔÏóÌṩÐÅÏ¢µÄ±êÌâµ¥Ôª¸ñ¡£
6     Yes
height Sets or returns the height of the table header cell
»ñÈ¡»òÉèÖñí¸ñ±êÌâµÄ¹¤×÷ÇøÓò¸ß¶È
4     No
id Sets or returns the id of the table header cell (In IE 4 this property is read-only)
ÉèÖûò·µ»Ø±í¸ñ±êÌâµÄid
4     No
innerHTML Sets or returns the HTML between the start and end tags of the table header cell
ÉèÖûò·µ»ØÔÚ±í¸ñµ¥Ôª±êǩ֮¼äµÄHTMLÄÚÈÝ
4     No
innerText Sets or returns the text between the start and end tags of the table header cell
ÉèÖûò·µ»ØÔÚ±í¸ñ±êÌâ±êǩ֮¼äµÄÎÄ×ÖÄÚÈÝ
4     No
noWrap Sets or returns a Boolean value indicating whether or not the browser automatically performs word wrap in the table header cell
ÉèÖûò»ñÈ¡ä¯ÀÀÆ÷ÊÇ·ñÖ´Ðбí¸ñ±êÌâÄÚµÄ×Ô¶¯»»ÐС£[²¼¶ûÖµ]
4     Yes
outerHTML Sets or returns the table header object and its content in HTML
ÉèÖûò»ñÈ¡±í¸ñ±êÌâ¶ÔÏó¼°ÆäÄÚÈÝµÄ HTML ÐÎʽ¡£
4     No
outerText Sets or returns the text of the table header object
ÉèÖûò»ñÈ¡±í¸ñ±êÌâ¶ÔÏóµÄÎı¾¡£
4     No
rowSpan Sets or returns the number of rows the table header cell should span
ÉèÖûò»ñÈ¡±êÌâ¸ñÒª¿çÔ½±í¸ñµÄ¶àÉÙÐС£
4     Yes
scope   6     Yes
tabIndex Sets or returns the tab order for the table header cell
ÉèÖûò»ñÈ¡¶¨Òå¶ÔÏóµÄ Tab ˳ÐòµÄË÷Òý¡£
5     No
vAlign Sets or returns how header cell content are vertically aligned
ÉèÖûò»ñÈ¡±êÌâÊDZí¸ñµÄÉÏÃæ»¹ÊÇÏÂÃæ¡£
4     Yes
width Sets or returns the width of the table header cell
ÉèÖûò»ñÈ¡±í¸ñ±êÌâµÄ¿í¶È
4     Yes

TableHeader ¶ÔÏó·½·¨

Method
·½·¨
Description
ÃèÊö
IE F N W3C
blur() Removes focus from the table header cell
ɾ³ý±í¸ñheaderµ¥ÔªµÄ½¹µã
5     No
click() Simulates a mouse-click on the table header cell
Ä£·ÂÊó±êµã»÷±í¸ñheaderµ¥Ôª
4     No
focus() Sets focus on the table header cell
Ϊ±í¸ñheaderµ¥ÔªÉèÖý¹µã
5     No

TableHeader ¶ÔÏóʼþ

Syntax: object.event_name="someJavaScriptCode"
Óï·¨£º¶ÔÏó.ʼþÃû³Æ=“һЩJS´úÂë”

Event
ʼþ
Description
ÃèÊö
IE F N W3C
onBlur Executes some code when the table header cell loses focus
µ±±í¸ñheaderµ¥ÔªÊ§È¥½¹µãµÄʱºòÖ´ÐÐһЩ´úÂë
5      
onClick Executes some code when the user clicks on the table header cell
µ±Óû§µã»÷±í¸ñheaderµ¥Ôª¾ÍÖ´ÐÐһЩ´úÂë
4      
onFocus Executes some code when the table header cell gets focus
µ±±í¸ñheaderµ¥ÔªµÃµ½½¹µã¾ÍÖ´ÐÐһЩ´úÂë
5      
onSelectStart Executes some code when the table header cell is selected
µ±±í¸ñheaderµ¥Ôª±»Ñ¡ÖÐÔòÖ´ÐÐһЩ´úÂë
4      

ÆÀÂÛ (0) All