-webkit-mask的写法和background一样,效果是在background上添加一层蒙板,只能用mask的图片透明度影响background的透明度,无法影响background的rgb色值。
-webkit-mask: url(icon.png) -125px 0; -webkit-mask-size: 150px 100px; background: none orange;
From code planet
-webkit-mask的写法和background一样,效果是在background上添加一层蒙板,只能用mask的图片透明度影响background的透明度,无法影响background的rgb色值。
-webkit-mask: url(icon.png) -125px 0; -webkit-mask-size: 150px 100px; background: none orange;