javascript borderLeft 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

left

英[ left] 美[lɛft]

adj. Left, left; leftist

n. Left, left; [military] left; left, radical

adv. to the left; on the left

v. to leave (past tense and past participle of leave)

Plural: lefts

javascript borderLeft propertysyntax

Function: Set all properties for the left border.

Syntax: Object.style.borderLeft=borderWidth borderStyle borderColo

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

javascript borderLeft propertyexample

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

<input type="button" onclick="changeBorder()"
value="Change left border" />

<p id="p1">This is a paragraph</p>

</body>
</html>

Run instance »

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

Home

Videos

Q&A