在线文档教程
CSS

CSS滤镜 | CSS Masks

CSS掩码 Masks

CSS Masks是一个CSS模块,它定义了部分或全部隐藏视觉元素部分的方法,包括屏蔽和裁剪。

参照系

特性

  • clip

  • clip-path

  • clip-rule

  • mask

  • mask-border-source

  • mask-border-mode

  • mask-border-slice

  • mask-border-width

  • mask-border-outset

  • mask-border-repeat

  • mask-border

  • mask-clip

  • mask-composite

  • mask-image

  • mask-mode

  • mask-origin

  • mask-position

  • mask-repeat

  • mask-size

  • mask-type

指导

没有。

规范

SpecificationStatusComment
CSS Masking Module Level 1Candidate Recommendation
Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'mask' in that specification.RecommendationInitial definition

浏览器兼容性

FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support (for SVG)(Yes)(Yes)?(Yes)(Yes)
Support for HTML, for mask and mask-* longhand properties?53.0 (53.0)???

FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support (for SVG)?????
Support for HTML, for mask and mask-* longhand properties?53.0 (53.0)???