day04

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

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

复制代码
<html>

<head>

    <style>

        /* Write your CSS code here */

        * {

            margin: 0px;

            padding: 0px;

        }

        body {

            background-color: rgb(242, 245, 248);

            display: flex;

        }

        .outer {

            margin: auto;

            background-color: white;

            width: 600px;

            height: 300px;

            display: flex;

            flex-direction: column;

            align-items: center;

            border-radius: 5px;

        }

        strong {

            display: inline-block;

            width: 100%;

            text-align: center;

            margin-top: 40px;

            font-size: 15px;

        }

        p {

            font-size: 10px;

            text-align: center;

            margin-top: 20px;

        }

        .email {

            margin-top: 40px;

            width: 280px;

            height: 45px;

            border-color: rgb(230, 235, 239);

            text-align: left;

            border-radius: 5px;

            margin-right: 5px;

            padding: 10px;

            box-sizing: border-box;

        }

        .email::placeholder {

            color: black;

            opacity: 0.6;

        }

        button {

            width: 150px;

            height: 45px;

            background-color: rgb(61, 159, 255);

            border-radius: 5px;

            margin-left: 5px;

            box-shadow: 0px 0px 15px rgb(157, 207, 255);

            border-color: rgb(61, 159, 255);

            color: white;

        }

        span {

            padding-top: 10px;

            display: inline-block;

            width: 230px;

            font-size: 10px;

            margin-left: 10px;

        }

        .inner2 {

            display: flex;

        }

        .checkbox {

            border-radius: 5px;

            border-color: rgb(247, 249, 250);

            opacity: 0.5;

        }

    </style>

</head>

<body>

    <div class="outer">

        <strong>Let's keep in touch</strong>

        <p>

            Subscribe to keep up with fresh news and exciting updates.

            <br>

            We promise not to spam you!

        </p>

        <div class="inner">

            <input type="email" class="email" placeholder="Enter your email address">

            <button>SEND -&gt;</button>

            <div class="inner2">

                <input class="checkbox" type="checkbox" name="protocal">

                <span>I agree to my email address being stored and used to receive monthly newsletter.</span>

            </div>

        </div>

    </div>

</body>

</html>
相关推荐
问心无愧051319 分钟前
ctf show web入门110
前端·笔记
拉拉肥_King24 分钟前
Vue 3 主题切换深度解析:从炫酷动画到零闪烁方案
前端·vue.js
excel26 分钟前
为什么 Pinia + localForage 持久化后,页面初始化拿不到数据?
前端
雨雨雨雨雨别下啦29 分钟前
vant介绍
前端
小小小小宇29 分钟前
大模型失忆问题探讨
前端
wordbaby32 分钟前
rn-cross-calendar:一个兼容 React 18/19、RN/RNOH 的跨平台日历组件
前端·react native·harmonyos
weixin_5231853234 分钟前
Collections.unmodifiableMap详解:真的不可修改吗?
java·linux·前端
江米小枣tonylua35 分钟前
关掉 VSCode:在 NeoVim12 上配置 Claude Code
前端·程序员
2301_773643621 小时前
ceph镜像
前端·javascript·ceph
程序员黑豆1 小时前
AI全栈开发之Java:什么是JDK
前端·后端·ai编程