hover 滑入

<!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;

            list-style: none;

            text-decoration: none;

        }

        .wrap {

            width: 642px;

            height: 240px;

            background-color: aqua;

            margin: 50px auto;

            padding: 15px 22px 22px 19px;

            box-sizing: border-box;

        }

        .a1 {

            line-height: 49px;

            font-size: 19px;

        }

        .a2 {

            font-size: 13px;

            text-align: center;

            margin-top: 8px;

        }



 

        .wrap .top .a3 p {

            font-size: 12px;

        }

        .wrap .top .a3 a {

            display: block;

            width: 48px;

            height: 18px;

            border: 1px solid white;

            font-size: 12px;

            text-align: center;

            line-height: 18px;

            border-radius: 3px;

            position: absolute;

            top: 45px;

            left: 0;

            bottom: 0;

            right: 0;

            margin: auto;

            color: white;

        }

        .wrap li .top {

            position: relative;

        }

        .a3 {

            width: 190px;

            height: 85px;

            position: absolute;

            background-color: #00c38e;

            display: none;

            text-align: center;

            padding: 6px 19px 10px 15px;

            line-height: 24px;

            box-sizing: border-box;

            color: white;

        }

        li {

            width: 190px;

            height: 150px;

            background-color: #f5f5f5;

            margin-right: 14px;

        }

        .wrap li:hover .a3 {

            display: block;

            top: 65px;

        }

        .wrap li {

            float: left;

        }

        .a4 {

            margin-right: 0;

        }

    </style>

</head>

<body>

    <div class="wrap">

        <h4 class="a1">留学活动</h4>

        <ul>

            <li>

                <div class="top">

                    <img src="./images/图层465.jpg" alt="">

                    <!-- 透明 -->

                    <div class="a3">

                        <p>中科院,设计思维,两场高质量体验美国</p>

                        <a href="#">详细</a>

                        <div></div>

                    </div>

                </div>

                <div class="bot">

                    <p class="a2">中科院,设计思维,两场高质</p>

                </div>

            </li>

            <li>

                <div class="top">

                    <img src="./images/图层467.jpg" alt="">

                    <!-- 透明 -->

                    <div class="a3">

                        <p>中科院,设计思维,两场高质量体验美国</p>

                        <a href="#">详细</a>

                        <div></div>

                    </div>

                </div>

                <div class="bot">

                    <p class="a2">中科院,设计思维,两场高质</p>

                </div>

            </li>

            <li class="a4">

                <div class="top">

                    <img src="./images/图层468.jpg" alt="">

                    <!-- 透明 -->

                    <div class="a3">

                        <p>中科院,设计思维,两场高质量体验美国</p>

                        <a href="#">详细</a>

                        <div></div>

                    </div>

                </div>

                <div class="bot">

                    <p class="a2">中科院,设计思维,两场高质</p>

                </div>

            </li>

        </ul>

    </div>

</body>

</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值