day05

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

在这里插入图片描述

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

<html>

<head>

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

    <style>

        /* Write your CSS code here */

        body {

            background-color: rgb(240, 137, 177);

            display: flex;

        }

        .outer {

            margin: auto;

            width: 180px;

            height: 340px;

            background-color: white;

            border-radius: 10px;

            padding: 30px;

            transition-property: all;

            transition-duration: 1s;

        }

        .outer:hover {

            transform: scale(1.1);

        }

        .title {

            font-size: 15px;

            margin-top: 0px;

        }

        .item1 {

            height: 50px;

            font-size: 10px;

            display: flex;

            padding-top: 5px;

            padding-bottom: 5px;

            box-sizing: border-box;

            transition-property: all;

            transition-duration: 1s;

            border-radius: 5px;

        }

        .item1:hover {

            transform: scale(1.1);

            border: 1px solid skyblue;

            cursor: pointer;

        }

        .icon {

            width: 40px;

            border-radius: 20px;

            border: 1px solid black;

        }

        .content {

            margin: 0px;

            margin-left: 10px;

            opacity: 0.8;

        }
        
        button {

            margin-top: 20px;

            width: 180px;

            height: 45px;

            color: white;

            background-color: rgb(232, 109, 203);

            background-image: linear-gradient(to right bottom, rgb(232, 109, 203), rgb(254, 105, 163));

            border-color: transparent;

            border-radius: 5px;

            box-shadow: 0px 5px 10px 1px gray;

            transition: all;

            transition-duration: 1s;

        }

        button:hover {

            transform: scale(1.1);

        }

    </style>

</head>

<body>

    <div class="outer">

        <p class="title">24 birthdays today</p>

        <div class="item1">

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

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

            </svg>

            <p class="content">

                <strong>Bertie Yates</strong>

                <br>

                29 years

            </p>

        </div>

        <div class="item1">

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

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

            </svg>

            <p class="content">

                <strong>Bertie Yates</strong>

                <br>

                29 years

            </p>

        </div>

        <div class="item1">

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

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

            </svg>

            <p class="content">

                <strong>Bertie Yates</strong>

                <br>

                29 years

            </p>

        </div>

        <div class="item1">

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

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

            </svg>

            <p class="content">

                <strong>Bertie Yates</strong>

                <br>

                29 years

            </p>

        </div>

        <div class="item1">

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

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

            </svg>

            <p class="content">

                <strong>Bertie Yates</strong>

                <br>

                29 years

            </p>

        </div>

        <button>View all</button>

    </div>

</body>

</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

linux-hzh

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值