margin

English [?mɑ:d??n]

n. ????, ??; ??(??? ?? ??)

vt. ?? ??... ; ?? ??...

plural: margins

right

英[ra?t] 美[ra?t]

adv.immediately, ??; , ??

???, ??, ??, ???

vi. (? ?) ???

3?? ??: rights ??: rights ?? ??: righting ?? ??: righted ?? ??: righted

?????? marginRight ?? ???

??: ??? ??? ??? ?????.

??: ??Object.style.marginRight=auto|length|%

????: auto ?????? ??? ?? ??? ?????. length? ??? ?? ??? ??? ?????. ???? 0???. % ?? ??? ?? ??? ???? ?? ??? ??? ???? ?????.?

?????? marginRight ?? ?

<html>
<head>
<style type="text/css">
p
{ 
text-align: right
}
</style>
<script type="text/javascript">
function changeMargin()
{
document.getElementById("p1").style.marginRight="32px";
}
</script>
</head>
<body>

<input type="button" onclick="changeMargin()"
value="Change the right margin of a paragraph" />

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

</body>
</html>

???? ?? ?

??? ????? ??? "???? ??" ??? ?????