## border-right 屬性
### 屬性定義及使用說明
border-right 簡寫屬性把左邊框的所有屬性設置到一個聲明中。
可以設置的屬性是(按順序):border-right-width, border-right-style, and border-right-color.
如果上述值缺少一個,沒有關系,例如border-right:solid #ff0000; 是允許的。
JavaScript 語法:object object.style.borderRight="3px solid blue"
* * *
## 瀏覽器支持

所有主要瀏覽器都支持border-right屬性。
**注意**IE7和更早的版本不支持"繼承"的值。 IE8需要定義!DOCTYPE。 IE9支持"繼承"。
* * *
## Property Values
| 值 | 說明 |
| :-- | :-- |
| *[border-right-width](https://www.w3cschool.cn/cssref/pr-border-right-width.html)* | 指定右邊框的寬度 |
| *[border-right-style](https://www.w3cschool.cn/cssref/pr-border-right-style.html)* | 指定右邊框的樣式 |
| *[border-right-color](https://www.w3cschool.cn/cssref/pr-border-right-color.html)* | 指定右邊框的顏色 |
| inherit | 指定了border-right屬性的值,應該從父元素繼承 |
* * *
## 實例 -- 設置右邊框的樣式:
```
<!DOCTYPE html>
<html>
<head>
<style>
p
{
border-style:solid;
border-right:thick double #ff0000;
}
</style>
</head>
<body>
<p>This is some text in a paragraph.</p>
</body>
</html>
```
- 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 選擇器