HTML DOM Style borderImageWidth 屬性
定義和用法
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屬性