& vi.Boxing

3?? ??: ?? ???: ?? ?? ??: boxing ?? ??: boxed

pack

英[p?k] 美[p?k]

n. ??; ??

vt.& vi. (????); ???? ???; ???

vi. ??? ????, ??? ???? ??, ??? ???(??? off? ?? ???)

3?? ??: packs ???: packs ?? ??:packing ?? ??: ??

CSS ??? ?? ???

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

??: ??box-pack: start|end|center|justify;

??: start ?? ??? ??? ?? ? ?? ?? ??? ?? ????? ??? ?????(?? ??? ?? ??? ?? ?? ?????)

, ?? ?? ??? ?? ??? ?? ??? ??? ????? ???? ?????(? ?? ?? ?? ?? ?? ?? ??). end ???? ??? ????? ??? ??? ??? ????? ???? ?????(? ?? ?? ?? ?? ??). ??? ??? ??? ?? ? ?? ??? ?? ????? ??? ?????(??? ?? ?? ??? ??). center ? ??? ??? ? ?? ?? ?? ?? ???? ??? ??? ??? ?? ?? ?? ???? ?? ??? ???? ????. justify? ? ?? ?? ??? ?? ??? ?????(? ?? ?? ?? ?? ??? ?? ?? ??? ?? ?? ??).

??: ?? box-pack ??? ???? ????? ????. Firefox? ?? -moz-box-pack ??? ?????. Safari, Opera ? Chrome? ?? -webkit-box-pack ??? ?????.

CSS ??? ?? ?

<!DOCTYPE html>
<html>
<head>
<style> 
div
{
width:350px;
height:100px;
border:1px solid black;
  
/* Firefox */
display:-moz-box;
-moz-box-pack:center;
-moz-box-align:center;

/* Safari, Chrome, and Opera */
display:-webkit-box;
-webkit-box-pack:center;
-webkit-box-align:center;
}
</style>
</head>
<body>

<div>
<p>我是居中對齊的。</p>
</div>

<p><b>注釋:</b>IE 不支持 box-pack 和 box-align 屬性。</p>

</body>
</html>

???? ?? ?

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