right版本︰CSS2 相容性︰IE5+ 繼承性︰無
語法︰
right : auto |
length
參數︰
auto : 無特殊定位,根據HTML定位規則載文檔流中指派
length : 由浮點數字和單位識別符組成的長度值 | 或者百分數。必須定義
position屬性值為absolute或者relative此取值方可生效。請參閱
長度單位
說明︰
檢索或設定對象與其最近一個定位的父對象右邊相關的位置。
對應的腳本特性為
right。其值為一字串,所以無法使用于腳本(Scripts)中的計算。請使用style對象的
posRight,
pixelRight等特性。請參閱我編寫的其它書目。
示例︰
div { position: absolute; right: 1in; }
div { position:relative; top:-3px; right:6px; }
蘇沈小雨製作•保留所有權利
©2001 rain1977.comer . All rights reserved . Terms of Use .