clip版本︰CSS2 相容性︰IE4+ NS6+ 繼承性︰無
語法︰
clip : auto |
rect ( number number number number )
參數︰
auto : 對象無剪下
rect ( number number number number ) : 依據上-右-下-左的順序提供自對象左上角為(0,0)坐標計算的四個偏移數值,其中任一數值都可用auto取代,即此邊不剪下
說明︰
檢索或設定對象的可視欄位。欄位外的部分是透明的。
必須將
position的值設為absolute,此屬性方可使用。
自IE5開始,此屬性在MAC平臺上可用。
對應的腳本特性為
clip。請參閱我編寫的其它書目。
示例︰
div { position:absolute; width:60px; height:60px; clip:rect(0 20 50 10); }
div { position:absolute; width:60px; height:60px; clip:rect(1cm auto 50px 10cm); }
蘇沈小雨製作•保留所有權利
©2001 rain1977.comer . All rights reserved . Terms of Use .