day07

这就是今天要实现的效果图(颜色提取推荐使用snipaste)

代码(仅供参考,不喜勿喷, 可以在评论区展示作品)

复制代码
<html>

<head>

    <script src="//at.alicdn.com/t/c/font_4930922_qnjgmb4frw.js"></script>

    <style>

        /* Write your CSS code here */

        body {

            background-color: rgb(240, 243, 251);

            display: flex;

        }

        .outer {

            width: 600px;

            height: 400px;

            margin: auto;

            display: flex;

            flex-direction: column;

            justify-content: space-around;

        }

        .first {

            background-color: white;

            height: 40px;

            display: flex;

            justify-content: space-between;

            box-shadow: 0px 5px 5px 0px #00000047;

        }

        .second {

            background-color: rgb(21, 22, 38);

            height: 40px;

            display: flex;

            justify-content: space-between;

            box-shadow: 0px 5px 5px 0px #00000047;

            color: white;

        }

        .third {

            background-color: white;

            height: 40px;

            display: flex;

            justify-content: space-between;

            box-shadow: 0px 5px 5px 0px #00000047;

            border-radius: 20px;

        }

        .four {

            background-color: rgb(21, 22, 38);

            height: 40px;

            display: flex;

            justify-content: space-between;

            box-shadow: 0px 5px 5px 0px #00000047;

            color: white;

            border-radius: 20px;

        }

        .five {

            background-color: white;

            height: 40px;

            display: flex;

            justify-content: center;

            box-shadow: 0px 5px 5px 0px #00000047;

        }

        .six {

            background-color: rgb(21, 22, 38);

            height: 40px;

            display: flex;

            justify-content: center;

            box-shadow: 0px 5px 5px 0px #00000047;

            color: white;

        }

        .svg1 {

            width: 30px;

            height: 30px;

            padding: 5px;

        }

        span {

            display: inline-block;

            line-height: 40px;

            margin-left: 10px;

        }

        .svg2 {

            width: 20px;

            margin-right: 10px;

        }

        .svg2:hover {

            cursor: pointer;

        }

    </style>

</head>

<body>

    <div class="outer">

        <div class="first">

            <div style="display: flex">

                <svg class="svg1" aria-hidden="true">

                    <use xlink:href="#icon-wancheng"></use>

                </svg>

                <span>File has been removed successfuly.</span>

            </div>

            <svg class="svg2" aria-hidden="true">

                <use xlink:href="#icon-guanbi"></use>

            </svg>

        </div>

        <div class="second">

            <div style="display: flex">

                <svg class="svg1" aria-hidden="true">

                    <use xlink:href="#icon-wancheng"></use>

                </svg>

                <span>File has been removed successfuly.</span>

            </div>

            <svg class="svg2" aria-hidden="true">

                <use xlink:href="#icon-guanbi"></use>

            </svg>

        </div>

        <div class="third">

            <div style="display: flex">

                <svg class="svg1" aria-hidden="true">

                    <use xlink:href="#icon-wancheng"></use>

                </svg>

                <span>File has been removed successfuly.</span>

            </div>

            <svg class="svg2" aria-hidden="true">

                <use xlink:href="#icon-guanbi"></use>

            </svg>

        </div>

        <div class="four">

            <div style="display: flex">

                <svg class="svg1" aria-hidden="true">

                    <use xlink:href="#icon-wancheng"></use>

                </svg>

                <span>File has been removed successfuly.</span>

            </div>

            <svg class="svg2" aria-hidden="true">

                <use xlink:href="#icon-guanbi"></use>

            </svg>

        </div>

        <div class="five">

            <div style="display: flex">

                <svg class="svg1" aria-hidden="true">

                    <use xlink:href="#icon-wancheng"></use>

                </svg>

                <span>File has been removed successfuly.</span>

            </div>

        </div>

        <div class="six">

            <div style="display: flex">

                <svg class="svg1" aria-hidden="true">

                    <use xlink:href="#icon-wancheng"></use>

                </svg>

                <span>File has been removed successfuly.</span>

            </div>

        </div>

    </div>

</body>

</html>
相关推荐
YongGit17 分钟前
探索 AI + MCP 渲染前端 UI
前端·后端·node.js
慧一居士1 小时前
<script setup>中的setup作用以及和不带的区别对比
前端
RainbowSea1 小时前
NVM 切换 Node 版本工具的超详细安装说明
java·前端
读书点滴1 小时前
笨方法学python -练习14
java·前端·python
Mintopia2 小时前
四叉树:二维空间的 “智能分区管理员”
前端·javascript·计算机图形学
慌糖2 小时前
RabbitMQ:消息队列的轻量级王者
开发语言·javascript·ecmascript
Mintopia2 小时前
Three.js 深度冲突:当像素在 Z 轴上玩起 "挤地铁" 游戏
前端·javascript·three.js
Penk是个码农2 小时前
web前端面试-- MVC、MVP、MVVM 架构模式对比
前端·面试·mvc
MrSkye2 小时前
🔥JavaScript 入门必知:代码如何运行、变量提升与 let/const🔥
前端·javascript·面试
白瓷梅子汤2 小时前
跟着官方示例学习 @tanStack-form --- Linked Fields
前端·react.js