zoukankan      html  css  js  c++  java
  • 20.毛玻璃效果blur

    效果图

    DOM

    <main>
            <blockquote>
                "Before downloading, be sure to have a code editor (we recommend Sublime Text 2) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with the compiled Bootstrap files."
                <footer><cite>
                XXXXXXXXXXXXXXXXXXXX
                </cite>
                </footer>
            </blockquote>
            
    </main>

    CSS

    body,main::before{
        /*自行备图一张*/
        background: url(img/bg-2.jpg) no-repeat;
        background-size: 700px 400px;
        background-attachment: fixed;
        background-position: top;
    }
    main{
        border-radius: 10px;
        color: white;
        width: 500px;
        height: 300px;
        margin: 0 auto;
        /*border: 1px solid #eee;*/
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background: hsla(0,0%,100%,.3);
        overflow: hidden;
    }
    main::before{
        border-radius: 10px;
        content: '';
        position: absolute;
        left: 0;right: 0;top: 0;bottom: 0;
        /*关键代码*/
        filter: blur(20px);
        z-index: -1;
        margin: -30px;
    }
  • 相关阅读:
    es的多种term查询
    es的批量导入
    可重入锁
    常见的字段类型
    es中的分词
    搜索的简单使用
    application.properties中的list配置
    mysql中的concat的几个函数使用
    文档的增删改查
    Mxnet学习笔记(3)--自定义Op
  • 原文地址:https://www.cnblogs.com/famLiu/p/7232855.html
Copyright © 2011-2022 走看看