JavaScript 參考手冊
規(guī)定圖像邊框的寬度:
borderImageWidth 屬性規(guī)定圖像邊框的寬度。
Opera 不支持 borderImageWidth 屬性。
Internet Explorer 10 及其之前的版本不支持 borderImageWidth 屬性。
Safari 5 及其之前的版本不支持 borderImageWidth 屬性。
請參閱 borderImage 屬性來替代它!
返回 borderImageWidth 屬性:
設(shè)置 borderImageWidth 屬性:
值 | 描述 |
---|---|
length | 一個(gè)規(guī)定邊框?qū)挾却笮〉拈L度單位(px)。A length unit (px) specifying the size of the border-width |
number | 默認(rèn)值是 1。表示相應(yīng)的邊框?qū)挾鹊谋稊?shù)。 |
% | 相對于邊框圖像區(qū)域大小的百分比:水平偏移參照區(qū)域的寬度,垂直偏移參照區(qū)域的高度。 |
auto | 如果規(guī)定了該屬性,寬度是相應(yīng)圖像切片固有的寬度或高度。 |
initial | 設(shè)置該屬性為它的默認(rèn)值。請參閱 initial。 |
inherit | 從父元素繼承該屬性。請參閱 inherit。 |
默認(rèn)值: | 1 |
---|---|
返回值: | 字符串,表示元素的 border-image-width 屬性。 |
CSS 版本 | CSS3 |
CSS 參考手冊:border-image-width 屬性