HTML DOM propiedad Estilo BorderRight
Objetos de estilo
Definición y Uso
BorderRight propiedad abreviada para establecer o devolver el borde derecho de tres propiedades independientes.
Con esta propiedad, se puede establecer / retorno:
- border-right-ancho
- border-right-estilo
- border-right-color de
gramática
Configuración de las propiedades BorderRight:
Object.style.borderRight="width style color"
Volver propiedades BorderRight:
Object.style.borderRight
Consejo: BorderRight propiedad tiene ningún valor predeterminado.
参数 | 描述 |
---|---|
width | 设置右边框的宽度。 |
style | 设置右边框的样式。 |
color | 设置右边框的颜色。 |
Soporte para el navegador
Todos los principales navegadores soportan la propiedad BorderRight.
Ejemplos
Ejemplos
Cambiar el ancho de la derecha, un estilo, y color:
<! DOCTYPE html>
<Html>
<Head>
<Charset Meta = "UTF-8">
<Title> Este tutorial (w3big.com) </ title>
<Style type = "text / css">
# {Ex1
frontera: delgadas de puntos # FF0000;
}
</ Style>
<Script>
displayResult función () {
. Document.getElementById ( "EX1") style.borderRight = "# 0000FF sólido grueso";
}
</ Script>
</ Head>
<Cuerpo>
<Div id = "EX1"> Esto es un texto. </ Div>
<br>
<Botón type = "button" onclick = "displayResult ()"> Modificar la derecha del cuadro </ botón>
</ Body>
</ Html>
<Html>
<Head>
<Charset Meta = "UTF-8">
<Title> Este tutorial (w3big.com) </ title>
<Style type = "text / css">
# {Ex1
frontera: delgadas de puntos # FF0000;
}
</ Style>
<Script>
displayResult función () {
. Document.getElementById ( "EX1") style.borderRight = "# 0000FF sólido grueso";
}
</ Script>
</ Head>
<Cuerpo>
<Div id = "EX1"> Esto es un texto. </ Div>
<br>
<Botón type = "button" onclick = "displayResult ()"> Modificar la derecha del cuadro </ botón>
</ Body>
</ Html>
Trate »
Objetos de estilo