首页 > 技术文章 > css3属性clip

yuer20180726 2019-07-10 23:16 原文

clip 属性定义了元素的哪一部分是可见的。clip 属性只适用于 position:absolute 的元素。

rect(<top>, <right>, <bottom>, <left>)   /* 标准语法 */
rect(<top> <right> <bottom> <left>) /* 向后兼容语法 */

<top> 和 <bottom> 指定相对于盒子上边框边界 的偏移,<right> 和 <left> 指定了相对于盒子左边框边界 的偏移。<top>, <right>, <bottom>, 和 <left> 的值可以是 <length> 值或 auto。

 

推荐阅读