HTML DOM Style borderImageWidth 屬性

2018-08-04 20:41 更新

Style borderImageWidth 屬性

Style 對象參考手冊 Style 對象

實例

規(guī)定圖像邊框的寬度:

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

嘗試一下 ?

定義和用法

borderImageWidth 屬性規(guī)定圖像邊框的寬度。


瀏覽器支持

Internet Explorer Firefox Opera Google Chrome Safari

Opera 不支持 borderImageWidth 屬性。

Internet Explorer 10 及其之前的版本不支持 borderImageWidth 屬性。

Safari 5 及其之前的版本不支持 borderImageWidth 屬性。

請參閱 borderImage 屬性來替代它!


語法

返回 borderImageWidth 屬性:

object.style.borderImageWidth

設置 borderImageWidth 屬性:

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

屬性值

描述
length 一個規(guī)定邊框?qū)挾却笮〉拈L度單位(px)。A length unit (px) specifying the size of the border-width
number 默認值是 1。表示相應的邊框?qū)挾鹊谋稊?shù)。
% 相對于邊框圖像區(qū)域大小的百分比:水平偏移參照區(qū)域的寬度,垂直偏移參照區(qū)域的高度。
auto 如果規(guī)定了該屬性,寬度是相應圖像切片固有的寬度或高度。
initial 設置該屬性為它的默認值。請參閱 initial。
inherit 從父元素繼承該屬性。請參閱 inherit。

技術細節(jié)

默認值: 1
返回值: 字符串,表示元素的 border-image-width 屬性。
CSS 版本 CSS3


相關文章

CSS 參考手冊:border-image-width 屬性


Style 對象參考手冊 Style 對象

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號