使用遮罩效果將透明像素變為指定顏色並使不透明像素透明。此篩選器中使用下列參數
Sr.否 | 參數及說明 |
---|---|
1 | strong>## 透明區域將變成的色彩。 |
<html> <head> </head> <body> <img src="/static/imghwm/default1.png" data-src="/css/images/logo.png" class="lazy" alt="CSS Logo" style="max-width:90%"> <p>Text Example:</p> <div style="width: 357; height: 50; font-size: 30pt; font-family: Arial Black; color: red; Filter: Mask(Color=#00FF00)">CSS Tutorials</div> </body> </html>
以上是使用 CSS 設定遮罩效果的詳細內容。更多資訊請關注PHP中文網其他相關文章!