Home > Article > Web Front-end > 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!