Blogger Information
Blog 5
fans 0
comment 0
visits 9007
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
网站实现模拟遮罩效果
花舞花落淚的博客
Original
1289 people have browsed it

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>遮罩效果</title>
    <style>
    body{
        margin: 0;
        background: url(images/php.png);
        background-size: cover;
        background-repeat: no-repeat;
        }
    .box{
         position: absolute;
         width: 100%;
         height: 100%;
         left: 0;
         top: 0;
         background: black;
         opacity: 0.7;
         }
    .login{
        position: absolute;
        top:50%;
        left: 50%;
        margin-left:-170px;
        margin-top:-210px;

    }
    .login img{
        width: 340px;
        height: 420px;
    }
    </style>
</head>
<body>
    <div class="box"></div>
    <div class="login">
            <img src="images/login.png" alt="">
        </div>
</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

网站实现简单的模拟遮罩效果。login.pngphp.png

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post