樣式 borderImageWidth 屬性
描述
borderImageWidth 屬性指定邊框影像的寬度。
瀏覽器支援
表中的數字指定了完全支援該屬性的第一個瀏覽器版本。
屬性 | |||||
---|---|---|---|---|---|
borderImageWidth | 是 | 11.0 | 是 | 6.0 | 15.0 |
請檢視 borderImage 屬性!
語法
返回 borderImageWidth 屬性
object.style.borderImageWidth
設定 borderImageWidth 屬性
object.style.borderImageWidth = "number|%|auto|initial|inherit"
屬性值
值 | 描述 |
---|---|
length | 一個長度單位 (px),指定邊框寬度的尺寸 |
數字 | 預設值 1。表示相應邊框寬度的倍數 |
% | 指邊框影像區域的大小:水平偏移量的區域寬度,垂直偏移量的高度 |
auto | 如果指定,寬度是相應影像切片的固有寬度或高度 |
initial | 將此屬性設定為其預設值。閱讀關於 initial |
inherit | 從其父元素繼承此屬性。閱讀關於 inherit |
技術詳情
預設值 | 1 |
---|---|
返回值 | 一個字串,表示元素的 border-image-width 屬性 |
CSS 版本 | CSS3 |
相關頁面
CSS 參考:border-image-width 屬性