Latest web development tutorials

HTML DOM propiedad Estilo borderBottomWidth

Estilo de referencia de objetos Objetos de estilo

Definición y Uso

borderBottomWidth conjuntos de propiedades o devuelve el ancho del borde inferior del elemento.

gramática

Configuración de las propiedades borderBottomWidth:

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

Volver propiedades borderBottomWidth:

Object.style.borderBottomWidth

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


Soporte para el navegador

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Todos los principales navegadores soportan la propiedad borderBottomWidth.

Nota: Internet Explorer 7 y versiones anteriores no son compatibles con el valor "heredar".IE8 sólo proporciona! DOCTYPE apoyado "hereda". apoyo IE9 "hereda".


Ejemplos

Ejemplos

Cambiar el ancho del borde 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>

Trate »


Estilo de referencia de objetos Objetos de estilo