## border-image-width 屬性
## 定義和用法
border-image-width 屬性規定圖像邊框的寬度。
JavaScript 語法:object.style.borderImageWidth="30 30"
## 語法
~~~
border-image-width: number|%|auto;
~~~
**注意:**border-image -width的4個值指定用于把border圖像區域分為九個部分。他們代表上,右,底部,左,兩側向內距離。如果第四個值被省略,它和第二個是相同的。如果也省略了第三個,它和第一個是相同的。如果也省略了第二個,它和第一個是相同的。負值是不允許的。
| 值 | 描述 |
| --- | --- |
| *number* | 代表對應的 border-width 的倍數。 |
| *%* | 參考邊框圖像區域的尺寸:區域的高度影響水平偏移,寬度影響垂直偏移。 |
| *auto* | 如果規定該屬性,則寬度為對應的圖像切片的固有寬度。 |
## 實例
規定圖像邊框的寬度:
~~~
div
{
border-image-source: url(border.png);
border-image-width: 30 30;
}
~~~
- CSS常用樣式控制
- background--背景
- Text--文本
- CSS屬性
- align-*
- animation-*
- appearance
- backface-visibility
- background
- background-attachment
- background-blend-mode
- background-clip
- background-color
- background-image
- background-origin
- background-position
- background-repeat
- background-size
- border
- border-bottom
- border-bottom-color
- border-bottom-left-radius
- border-bottom-right-radius
- border-bottom-style
- border-bottom-width
- border-collapse
- border-color
- border-image
- border-image-outset
- border-image-repeat
- border-image-source
- border-image-width
- Border-left
- border-left-color
- border-left-style
- border-left-width
- border-image-slice
- border-radius
- border-right
- border-right-color
- border-right-style
- border-right-width
- border-spacing
- border-style
- border-top
- border-top-color
- border-top-left-radius
- border-top-right-radius
- border-top-style
- border-top-width
- border-width
- bottom
- box-shadow
- box-sizing
- caption-side
- clear
- clip
- color
- column-count
- column-gap
- column-rule
- column-rule-color
- column-rule-style
- column-rule-width
- column-span
- column-width
- columns
- content
- counter-increment
- counter-reset
- cursor
- direction
- display
- Empty-cells
- filter(濾鏡)
- CSS 偽元素選擇器
- :active 選擇器
- :after 選擇器
- :before 選擇器
- :checked 選擇器
- :disabled 選擇器
- :empty 選擇器
- :enabled 選擇器
- :first-child 偽元素
- :first-letter 偽元素
- :first-line 偽元素
- :first-of-type 選擇器
- :focus 選擇器
- :hover 選擇器