javascript STYLE borderBottomWidth, borderLeftWidth, borderRightWidth, borderTopWidth
| borderBottomWidth, borderLeftWidth, borderRightWidth, borderTopWidth | NN 6 IE 4 DOM 2 |
| Read/Write | |
|
Provide the width of a single border edge of an element. See also the borderWidth property for setting the width for groups of edges in one statement. |
|
| Example | |
document.getElementById("announce").style.borderBottomWidth= "thin";
document.getElementById("announce").style.borderLeftWidth = "thick";
document.getElementById("announce").style.borderRightWidth = "2px";
document.getElementById("announce").style.borderTopWidth = "0.5em";
|
|
| Value | |
Three case-insensitive constantsthin | medium | thickallow the browser to define how many pixels are used to show the border. For more precision, you can also assign a length value . |
|
| Default | |
medium |
|
Previous: javascript STYLE borderCollapse
1819,Nickname,Homepage or email,Comments here,Add comment
