⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dom_obj_table.asp@output=print

📁 W3Schools tutorial..web designing
💻 ASP@OUTPUT=PRINT
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML DOM Table Object</title>
 
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</head>
<body>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

<h1>HTML DOM Table Object</h1>
<hr />

<h2>Table Object</h2>
<p>The Table object represents an HTML table.</p>
<p>For each instance of a 
&lt;table&gt; tag in an HTML document, a Table object is created.</p>

<p><b>IE:</b> Internet Explorer, <b>F:</b> Firefox, <b>O:</b> Opera, <b>W3C:</b> 
World Wide Web Consortium (Internet Standard).</p>

<h3>Table Object Collections</h3>
<table class="ex" cellspacing="0" border="1" width="100%">
  <tr>
    <th width="20%" align="left">Collection</th>
    <th width="60%" align="left">Description</th>
    <th width="5%" align="left">IE&nbsp;</th>
    <th width="4%" align="left">F</th>
    <th width="4%" align="left">O</th>
    <th width="7%" align="left">W3C</th>
  </tr>
  <tr>
    <td valign="top"><a href="coll_table_cells.asp">cells[]</a></td>
    <td valign="top">Returns an array containing each cell in a 
    table</td>
    <td valign="top">5</td>
    <td valign="top">1</td>
    <td valign="top">1</td>
    <td valign="top">No</td>
  </tr>
  <tr>
    <td valign="top"><a href="coll_table_rows.asp">rows[]</a></td>
    <td valign="top">Returns an array containing each row in a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top">tBodies[]</td>
    <td valign="top">Returns an array containing each tbody in a table</td>
    <td valign="top">4</td>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
    <td valign="top">Yes</td>
  </tr>
  </table>

<h3>Table Object Properties</h3>

<table class="ex" cellspacing="0" border="1" width="100%">
  <tr>
    <th width="20%" align="left">Property</th>
    <th width="60%" align="left">Description</th>
    <th width="5%" align="left">IE&nbsp;</th>
    <th width="4%" align="left">F</th>
    <th width="4%" align="left">O</th>
    <th width="7%" align="left">W3C</th>
  </tr>
  <tr>
    <td valign="top"><a href="prop_table_border.asp">border</a></td>
    <td valign="top">Sets or returns the width of the table border</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_table_caption.asp">caption</a></td>
    <td valign="top">Sets or returns the caption of a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_table_cellpadding.asp">cellPadding</a></td>
    <td valign="top">Sets or returns the amount of space between the cell 
    border and cell content</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_table_cellspacing.asp">cellSpacing</a></td>
    <td valign="top">Sets or returns the amount of space between the cells in a 
    table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_table_frame.asp">frame</a></td>
    <td valign="top">Sets or returns the outer-borders of a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_table_id.asp">id</a></td>
    <td valign="top">Sets or returns the id of a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_table_rules.asp">rules</a></td>
    <td valign="top">Sets or returns the inner-borders of a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_table_summary.asp">summary</a></td>
    <td valign="top">Sets or returns a description of a table</td>
    <td valign="top">6</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top">tFoot</td>
    <td valign="top">Returns the TFoot object of a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top">tHead</td>
    <td valign="top">Returns the THead object of a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_table_width.asp">width</a></td>
    <td valign="top">Sets or returns the width of a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  </table>

<h3>Standard Properties</h3>

<table class="ex" cellspacing="0" border="1" width="100%" id="table1">
  <tr>
    <th width="20%" align="left">Property</th>
    <th width="60%" align="left">Description</th>
    <th width="4%" align="left">IE&nbsp;</th>
    <th width="4%" align="left">F</th>
    <th width="5%" align="left">O</th>
    <th width="7%" align="left">W3C</th>
  </tr>
  <tr>
    <td valign="top"><a href="prop_classname.asp">className</a></td>
    <td valign="top">Sets or returns the class attribute of an element</td>
    <td valign="top">5</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_dir.asp">dir</a></td>
    <td valign="top">Sets or returns the direction of text</td>
    <td valign="top">5</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_lang.asp">lang</a></td>
    <td valign="top">Sets or returns the language code for an element</td>
    <td valign="top">5</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="prop_title.asp">title</a></td>
    <td valign="top">Sets or returns an element's advisory title</td>
    <td valign="top">5</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  </table>

<h3>Table Object Methods</h3>
<table class="ex" cellspacing="0" border="1" width="100%">
  <tr>
    <th width="25%" align="left" valign="top">Method</th>
    <th width="55%" align="left" valign="top">Description</th>
    <th width="5%" align="left" valign="top">IE</th>
    <th width="4%" align="left" valign="top">F</th>
    <th width="4%" align="left" valign="top">O</th>
    <th width="7%" align="left" valign="top">W3C</th>
  </tr>
  <tr>
    <td valign="top"><a href="met_table_createcaption.asp">createCaption()</a></td>
    <td valign="top">Creates a caption element for a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top">createTFoot()</td>
    <td valign="top">Creates an empty tFoot element in a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top">createTHead()</td>
    <td valign="top">Creates an empty tHead element in a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="met_table_deletecaption.asp">deleteCaption()</a></td>
    <td valign="top">Deletes the caption element and its content from a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="met_table_deleterow.asp">deleteRow()</a></td>
    <td valign="top">Deletes a row from a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top">deleteTFoot()</td>
    <td valign="top">Deletes the tFoot element and its content from a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top">deleteTHead()</td>
    <td valign="top">Deletes the tHead element and its content from a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  <tr>
    <td valign="top"><a href="met_table_insertrow.asp">insertRow()</a></td>
    <td valign="top">Inserts a new row in a table</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">9</td>
    <td valign="top">Yes</td>
  </tr>
  </table>
<br />
<hr />

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -