Style borderImageWidth 屬性
實例
規定圖像邊框的寬度:
	document.getElementById("myDIV").style.borderImageWidth="20px 30px";
定義和用法
borderImageWidth 屬性規定圖像邊框的寬度。
流覽器支持
 
 
 
 

Opera 不支持 borderImageWidth 屬性。
Internet Explorer 10 及其之前的版本不支持 borderImageWidth 屬性。
Safari 5 及其之前的版本不支持 borderImageWidth 屬性。
請參閱 borderImage 屬性來替代它!
語法
返回 borderImageWidth 屬性:
	object.style.borderImageWidth
設置 borderImageWidth 屬性:
	object.style.borderImageWidth="number|%|auto|initial|inherit"
屬性值
| 值 | 描述 | 
|---|---|
| length | 一個規定邊框寬度大小的長度單位(px)。A length unit (px) specifying the size of the border-width | 
| number | 默認值是 1。表示相應的邊框寬度的倍數。 | 
| % | 相對於邊框圖像區域大小的百分比:水準偏移參照區域的寬度,垂直偏移參照區域的高度。 | 
| auto | 如果規定了該屬性,寬度是相應圖像切片固有的寬度或高度。 | 
| initial | 設置該屬性為它的默認值。請參閱 initial。 | 
| inherit | 從父元素繼承該屬性。請參閱 inherit。 | 
技術細節
| 默認值: | 1 | 
|---|---|
| 返回值: | 字串,表示元素的 border-image-width 屬性。 | 
| CSS 版本 | CSS3 | 
相關文章
CSS 參考手冊:border-image-width 屬性

 Style 對象
 Style 對象