Latest web development tutorials

Properti HTML DOM Style borderImageWidth

Gaya Referensi Obyek gaya Objects

contoh

Lebar border image yang telah ditentukan:

document.getElementById("myDIV").style.borderImageWidth="20px 30px";

Coba »

Definisi dan Penggunaan

Atribut borderImageWidth menentukan lebar gambar perbatasan.


Dukungan Browser

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Opera tidak mendukung properti borderImageWidth.

Internet Explorer versi 10 dan properti borderImageWidth sebelumnya tidak didukung.

Safari versi 5 dan sebelumnya tidak mendukung properti borderImageWidth.

Lihat borderImage properti untuk menggantinya!


tatabahasa

Sifat Kembali borderImageWidth:

object .style.borderImageWidth

Pengaturan properti borderImageWidth:

object .style.borderImageWidth="number|%|auto|initial|inherit"

Nilai properti

描述
length 一个规定边框宽度大小的长度单位(px)。A length unit (px) specifying the size of the border-width
number 默认值是 1。表示相应的边框宽度的倍数。
% 相对于边框图像区域大小的百分比:水平偏移参照区域的宽度,垂直偏移参照区域的高度。
auto 如果规定了该属性,宽度是相应图像切片固有的宽度或高度。
initial 设置该属性为它的默认值。请参阅 initial
inherit 从父元素继承该属性。请参阅 inherit

rincian teknis

default: 1
Pengembalian: String mewakili atribut border-image-lebar elemen.
versi CSS CSS3


Artikel terkait

CSS Referensi: border-width atribut-Image


Gaya Referensi Obyek gaya Objects