css3实现毛玻璃效果

  • css3实现毛玻璃效果
  • <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            * { margin: 0; padding: 0; }
            .bg { background: url('./images/1.jpg'); display: flex; justify-content: center; }
            .normal { width: 300px; height: 200px; background: rgba(255, 255, 255, .7); }
            .g-filter { width: 300px; height: 200px; background: rgba(255, 255, 255, .7); filter: blur(6px); }
            .g-backdrop-filter { width: 300px; height: 200px; background: rgba(255, 255, 255, .7); backdrop-filter: blur(6px); }
        </style>
    </head>
    <body>
        <div class="bg">
            <div class="normal">Normal</div>
            <div class="g-filter">filter</div>
            <div class="g-backdrop-filter">backdrop-filter</div>
        </div>
    </body>
    </html>

     

上一篇:Zabbix的安装对硬软件的要求


下一篇:kbmMW 5.08.10试用报告