javascript borderRight attribute
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
#right
英[ raɪt] 美[raɪt]
adv. Immediately, right away; to the right, right; appropriately; always
adj. Correct; appropriate; right; good, normal
n.right;right;correct,just;right hand
vt.correct;straighten,make right;arrange;compensate
vi.(ships, etc.) restore , restore stability
Third person singular: rights Plural: rights Present participle: righting Past tense: righted Past participle: righted
javascript borderRight attributesyntax
Function: Set all properties for the right border.
Syntax: Object.style.borderRight=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 borderRight attributeexample
<html> <head> <style type="text/css"> p { border: thin dotted #FF0000 } </style> <script type="text/javascript"> function changeBorder() { document.getElementById("p1").style.borderRight="thick solid #0000FF"; } </script> </head> <body> <input type="button" onclick="changeBorder()" value="Change right border" /> <p id="p1">This is a paragraph</p> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance