Home  >  Article  >  Web Front-end  >  How to achieve mask effect in css

How to achieve mask effect in css

王林
王林forward
2020-07-16 17:34:568979browse

How to achieve mask effect in css

Important knowledge points:

(Recommended tutorial: css quick start)

background-color:#fff;filter:Alpha(Opacity=60);opacity:0.6;

Style:

<style>
    .back {background:url(images/coupon-logo.gif) no-repeat;}
    .top {height:100px;background-color:#fff;filter:Alpha(Opacity=60);opacity:0.6;}
</style>

html code:

<div class="back">
    <div class="top"></div>
</div>

The above is the detailed content of How to achieve mask effect in css. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete