Estilo borderRightColor Propiedad
Ejemplo
Cambia el color del borde derecho de un elemento <div> a rojo:
document.getElementById("myDiv").style.borderRightColor = "red";
Definición y uso
La propiedad borderRightColor establece o devuelve el color del borde derecho de un elemento.
Compatibilidad con navegador
Property | |||||
---|---|---|---|---|---|
borderRightColor | Yes | Yes | Yes | Yes | Yes |
Sintaxis
Devuelve la propiedad borderRightColor:
object.style.borderRightColor
Establezca la propiedad borderRightColor:
object.style.borderRightColor = "color|transparent|initial|inherit"
Valores de propiedad
Value | Description |
---|---|
color | Specifies the color of the right border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element |
transparent | The color of the right border is transparent (underlying content will shine through) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Detalles técnicos
Valor por defecto: | color actual |
---|---|
Valor devuelto: | Una cadena, que representa el color del borde derecho de un elemento. |
Versión CSS | CSS1 |
Más ejemplos
Ejemplo
Devuelve el color del borde derecho de un elemento <div>:
alert(document.getElementById("myDiv").style.borderRightColor);
páginas relacionadas
Tutorial de CSS: Borde CSS
Referencia CSS: propiedad border-right-color
Referencia HTML DOM: propiedad de borde
❮ Objeto de estilo