CSS border-right-color property
Examples
Set the color box on the right:
p
{
border-style:solid;
border-right-color:#ff0000
}
{
border-style:solid;
border-right-color:#ff0000
}
try it"
Attribute definitions and instructions
border-right-color property settings of an element of the right border of color.
Note Before youalways put the border-style property declaration to the border-color property. Border element must be obtained before you change its color.
Defaults: | not specified |
---|---|
inherit: | no |
version: | CSS1 |
JavaScript syntax: | object object.style.borderRightColor = "blue" |
Browser Support
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
border-right | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
Property Values
value | description |
---|---|
color_name | Predetermined color border color color name (for example, red). |
hex_number | Color border color is specified in hexadecimal value (such as # ff0000). |
rgb_number | Rgb color value specified border color code (eg rgb (255,0,0)). |
transparent | Defaults. Border color transparent. |
inherit | Provisions border color should inherit from the parent element. |
related articles
CSS tutorial: CSS Border
CSS Reference: border-right property