Style DOM
Properti style.background ialah bentuk shorthand untuk mendeklarasikan style.backgroundColor, style.backgroundImage, style.backgroundRepeat, style.backgroundAttachment, dan style.backgroundPosition dalam satu deklarasi. Sintaks: obj.style.background = value;…
Properti style.backgroundAttachment berkhasiat dikala BACKGROUND atau BACKGROUND-IMAGE digunakan, di mana style.backgroundAttachment mengatur bagaimana gambar dikala adanya scroll, ikut terscroll atau…
Properti style.backgroundColor dipakai untuk menetapkan warna tertentu latarbelakang suatu elemen. Sintaks: obj.style.backgroundColor = value; Nilainya: color Hex color, RGB color,…
Properti style.backgroundImage dipakai untuk menetapkan latarbelakang suatu elemen dengan suatu file gambar. Sintaks: obj.style.backgroundImage = value; Nilainya: none (default) Menetapkan…
Properti style.backgroundPosition dipakai untuk mengatur posisi BACKGROUND atau BACKGROUND-IMAGE. Sintaks: obj.style.backgroundPosition = value; Nilainya: Length Keywords left top left center…
Properti style.backgroundRepeat mempunyai kegunaan saat BACKGROUND atau BACKGROUND-IMAGE digunakan, di mana style.backgroundRepeat mengatur tampilan pengulangan dari gambar. Sintaks: obj.style.backgroundRepeat =…
Properti style.border ialah bentuk shorthand untuk menetapkan style.borderWidth, style.borderStyle, dan style.borderColor dalam satu deklarasi. Sintaks: obj.style.border = value; Nilainya: sub-style.border…
Properti style.borderBottom dipakai untuk tetapkan style.borderBottomWidth, style.borderBottomStyle, dan style.borderBottomColor dalam satu deklarasi. Sintaks: obj.style.borderBottom = value; Nilainya: sub-style.borderBottom Properti style.borderBottomWidth,…
Properti style.borderBottomColor dipakai untuk tetapkan warna border bawah suatu elemen. Sintaks: obj.style.borderBottomColor = value; Nilainya: color Hex color, RGB color,…
Properti style.borderBottomStyle dipakai untuk menetapkan style border bawah suatu elemen. Sintaks: obj.style.borderBottomStyle = value; Nilainya: Constants none (default), dotted, dashed,…