css3属性clip

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

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

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

原文地址:https://www.cnblogs.com/yuer20180726/p/11167267.html