HTML DOM TableRow Nesnesi
TableRow Nesnesi
TableRow nesnesi bir HTML <tr> öğesini temsil eder.
TableRow Nesnesine Erişin
Bir <tr> öğesine getElementById() kullanarak erişebilirsiniz:
Örnek
var x = document.getElementById("myTr");
İpucu: Bir <tr> öğesine , bir tablonun satır koleksiyonunda arama yaparak da erişebilirsiniz .
TableRow Nesnesi Oluşturun
Document.createElement() yöntemini kullanarak bir <tr> öğesi oluşturabilirsiniz:
Örnek
var x = document.createElement("TR");
TableRow Nesne Koleksiyonları
Collection | Description |
---|---|
cells | Returns a collection of all <td> or <th> elements in a table row |
TableRow Nesne Özellikleri
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the horizontal alignment of the content within a table row |
bgColor | Not supported in HTML5. Use
style.backgroundColor instead. Sets or returns the background color of a table row |
ch | Not supported in HTML5. Sets or returns an alignment character for cells in a table row |
chOff | Not supported in HTML5. Sets or returns the horizontal offset of the ch property |
height | Not supported in HTML5. Use style.height instead. Sets or returns the height of a table row. |
rowIndex | Returns the position of a row in the rows collection of a table |
sectionRowIndex | Returns the position of a row in the rows collection of a tbody, thead, or tfoot |
vAlign | Not supported in HTML5. Use
style.verticalAlign instead. Sets or returns the vertical alignment of the content within a table row |
TableRow Nesne Yöntemleri
Method | Description |
---|---|
deleteCell() | Deletes a cell from the current table row |
insertCell() | Inserts a cell into the current table row |
Standart Özellikler ve Olaylar
TableRow nesnesi ayrıca standart özellikleri ve olayları da destekler .
İlgili Sayfalar
HTML öğreticisi: HTML Tabloları
HTML referansı: HTML <tr> etiketi