? 語法: ? clip : auto | rect ( number number number number ) ? 參數(shù): ? auto : 對象無剪切 rect ( number number number number ) : 依據(jù)上-右-下-左的順序提供自對象左上角為(0,0)坐標計算的四個偏移數(shù)值,其中任一數(shù)值都可用auto替換,即此邊不剪切
? 說明: ? 檢索或設(shè)置對象的可視區(qū)域。區(qū)域外的部分是透明的。 必須將position的值設(shè)為absolute,此屬性方可使用。 自IE5開始,此屬性在MAC平臺上可用。
對應(yīng)的腳本特性為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); }
? ? ?