javascript borderBottom property


  Translation results:

border

UK[ˈbɔ:də(r)] US[ˈbɔ:rdə(r)]

n.Border; edge; edging; wrapping Edge

vt.& vi. Bound with, on the edge of...

vt. Along the edge of, surround..., edge...

vi. Approximate, adjacent

Third person singular: borders Plural: borders Present participle: bordering Past tense: bordered Past participle: bordered

bottom

英[ ˈbɒtəm] 美[ˈbɑ:təm]

n. Bottom; end; hip; end

adj. Bottom of

vt. Install the bottom; measure the depth; find out the truth

vi. Reach the bottom; establish a foundation

Third person singular: bottoms Plural: bottoms Present participle: bottoming Past tense: bottomed Past participle: bottomed

javascript borderBottom propertysyntax

Function: Set all properties for the lower border.

Syntax: Object.style.borderBottom=borderWidth borderStyle borderColor

##Parameters: borderWidth Set the width of the border. borderStyle sets the style of the border. borderColor Set the color of the border.

javascript borderBottom propertyexample

<html>
<head>
<style type="text/css">
p {border: thin dotted #FF0000}
</style>
<script type="text/javascript">
function changeBorder()
{
document.getElementById("p1").style.borderBottom="thick solid blue";
}
</script>
</head>
<body>

<input type="button" onclick="changeBorder()"
value="Change bottom paragraph border" />
<p id="p1">This is a paragraph with a border</p>

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

Home

Videos

Q&A