How to achieve mask effect in css

王林
Release: 2020-07-16 17:34:56
forward
9023 people have browsed it

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;
Copy after login

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>
Copy after login

html code:

<div class="back">
    <div class="top"></div>
</div>
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template