首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

clip-path(剪辑路径)

clip-path属性将它所应用于的元素与给定的<clipPath>元素进行绑定

作为一个表现属性,它也可以直接在CSS样式表中作为属性使用

用法上下文

分类

呈现属性

<FuncIRI> | none | 继承

动画

规范性文件

SVG 1.1(第2版)

<funciri>——对同一个SVG文档片段中的另一个图形对象的引用,该引用将被用作剪切路径。这个引用的语法和css uri相同。如果引用无效(例如,它指向的对象不存在或对象不是<clipPath>元素),则该clip-path属性(attribute)或特性(property)必须被视为未被指定。

实例

clip-path 作为一个属性(attribute)

Source code

Output result

Unable to find file clip-path-1.svg

Unable to find file clip-path-1.svg

clip-path 作为一个CSS特性(property)

Source code

Output result

Unable to find file clip-path-2.svg

Unable to find file clip-path-2.svg

适用元素

以下元素可以使用该clip-path属性

  • Container elements ?
  • Graphical elements ?

Related

  • <clipPath>

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com