Keterangan gaya Properti Samping
Contoh
Pindahkan judul tabel ke bagian bawah tabel:
document.getElementById("myCap").style.captionSide = "bottom";
Definisi dan Penggunaan
Properti keteranganSisi mengatur atau mengembalikan posisi keterangan tabel.
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
captionSide | Yes | 9.0 | Yes | Yes | Yes |
Sintaksis
Kembalikan properti captionSide:
object.style.captionSide
Setel properti captionSide:
object.style.captionSide = "top|bottom|initial|inherit"
Nilai properti
Value | Description |
---|---|
top | Default. Positions the table caption above the table |
bottom | Positions the table caption below the table |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Detail Teknis
Nilai Bawaan: | atas |
---|---|
Nilai Kembali: | Sebuah String, mewakili posisi judul tabel |
Versi CSS | CSS2 |
Lebih Banyak Contoh
Contoh
Kembalikan judul tabel:
alert(document.getElementById("myCap").style.captionSide);
Halaman Terkait
Tutorial CSS: Tabel CSS
Referensi CSS: properti sisi teks
Objek Gaya