propriedade HTML DOM Estilo borderRight
estilo Objects
Definição e Uso
borderRight propriedade estenográfica para definir ou retornar a borda direita de três propriedades independentes.
Com esta propriedade, você pode definir / retorno:
- -Width border-right
- Border-style-direita
- border-right-color
gramática
Definindo as propriedades borderRight:
Object.style.borderRight="width style color"
Propriedades volta borderRight:
Object.style.borderRight
Dica: borderRight propriedade não tem valor padrão.
参数 | 描述 |
---|---|
width | 设置右边框的宽度。 |
style | 设置右边框的样式。 |
color | 设置右边框的颜色。 |
Suporte a navegadores
Todos os principais navegadores suportam propriedade borderRight.
Exemplos
Exemplos
Alterar a largura certa fronteira, estilo, e cor:
<! DOCTYPE html>
<Html>
<Head>
<Charset Meta = "utf-8">
<Title> Este tutorial (w3big.com) </ title>
<Style type = "text / css">
# Ex1 {
border: thin pontilhadas # FF0000;
}
</ Style>
<Script>
displayResult function () {
. Document.getElementById ( "EX1") style.borderRight = "espessa # 0000FF";
}
</ Script>
</ Head>
<Body>
<Div id = "EX1"> Este é um texto. </ Div>
<br>
<Button type = "button" onclick = "displayResult ()"> Modificar o direito da </ button> Caixa
</ Body>
</ Html>
<Html>
<Head>
<Charset Meta = "utf-8">
<Title> Este tutorial (w3big.com) </ title>
<Style type = "text / css">
# Ex1 {
border: thin pontilhadas # FF0000;
}
</ Style>
<Script>
displayResult function () {
. Document.getElementById ( "EX1") style.borderRight = "espessa # 0000FF";
}
</ Script>
</ Head>
<Body>
<Div id = "EX1"> Este é um texto. </ Div>
<br>
<Button type = "button" onclick = "displayResult ()"> Modificar o direito da </ button> Caixa
</ Body>
</ Html>
tente »
estilo Objects