Latest web development tutorials

propriedade HTML DOM Estilo borderBottomWidth

Estilo Object Reference estilo Objects

Definição e Uso

borderBottomWidth conjuntos de propriedades ou retorna a largura da borda inferior do elemento.

gramática

Definindo as propriedades borderBottomWidth:

Object.style.borderBottomWidth="thin|medium|thick|length|inherit"

Propriedades volta borderBottomWidth:

Object.style.borderBottomWidth

描述
thin 定义细的边框。
medium 默认。定义中等的边框。
thick 定义粗的边框。
length 使用 px、cm 等单位定义边框的宽度。
inherit 下边框的宽度从父元素继承。


Suporte a navegadores

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Todos os principais navegadores suportam propriedade borderBottomWidth.

Nota: IE7 e versões anteriores não suportam o valor "herdar".IE8 só fornece! DOCTYPE suportado "herdar". suporte IE9 "herdar".


Exemplos

Exemplos

Alterar a largura da borda inferior:

<html>
<head>
<style type="text/css">
#ex1
{
border: 1px solid #FF0000;
}
</style>
<script>
function displayResult()
{
document.getElementById("ex1").style.borderBottomWidth="thick";
}
</script>
</head>
<body>

<div id="ex1">This is some text.</div>
<br>
<button type="button" onclick="displayResult()">Change width of bottom border</button>

</body>
</html>

tente »


Estilo Object Reference estilo Objects