css| Filter | Detailed Mask property to create an object covering the surface of the membrane. Its expression is also simple:
filter:mask (color= color)
There is only one color parameter that specifies what color to use as the mask.
Again, let's take a look at the effect of a picture before and after adding the mask attribute (see figure below):
Add the effect of the Mask property as if you were looking at an object with tinted glasses. The code for the effect above is as follows:
<title> Mask Filter </title>
<style>//* set CSS style start *//
<!--
div{position:absolute;top:20;left:40;
Filter:mask (color: #666699);
* Defines the style of the Div area, absolute positioning, the color parameter value of the Mask property to specify what colors to use to mask
Live Object *//
p{font-family:bailey;font-size:72pt;
Font-weight:bold;color: #FF9900;}
//* defines the styles within the P region, font name, size, thickness, foreground color *//
-->
</style>
<body>
<div>
<p> Wenyleaf </p>
</div>
</body>
In fact, even if you remove the definition of the font foreground color in your code, you get the same effect. Because of the definition of the mask attribute, the setting of the font color under its mask has lost its meaning.
There is also a point that needs your attention, the mask attribute to the picture file support is not enough, can not achieve the desired effect.