每日css

在这里插入图片描述

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            list-style: none;
            background: #06bae7;
        }
        *{
            margin: 0;
            padding: 0;
            list-style: none;
            box-sizing: border-box;
        }
        .tbody{
            width: 1000px;
            height: 90vh;
            margin: 0 auto;
            margin-top: 10px;
        }
        .tm{
            width: 200px;
            height: 320px;
            position: relative;
        }
        .tm img{
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
        }
        .line-top{
            width: 98%;
            height: 1%;
            background-color: white;
            position: absolute;
            right: 1%;
            top:0;
            display: block;
            transition: all .6s linear;
            transition-delay: 1.8s;
        }
        .tm:hover .line-top{
            width: 0;
            transition-delay: 0s;
        }
        .line-right{
            width: 1%;
            height: 98%;
            background-color: white;
            position: absolute;
            right: 0;
            bottom:1%;
            display: block;
            transition: all .6s linear;
            transition-delay: 1.2s;
            transform-origin: top center;
        }
        .tm:hover .line-right{
            height: 0;
            transition-delay: 0.6s;
        }
        .line-bottom{
            width: 98%;
            height: 1%;
            background-color: white;
            position: absolute;
            left: 1%;
            bottom:0;
            display: block;
            transition: all .6s linear;
            transition-delay: 0.6s;
        }
        .tm:hover .line-bottom{
            width: 0;
            transition-delay: 1.2s;
        }
        .line-left{
            width: 1%;
            height: 98%;
            background-color: white;
            position: absolute;
            left: 1%;
            top:1%;
            display: block;
            transition: all .6s linear;
            transition-delay: 0s;
        }
        .tm:hover .line-left{
            height: 0;
            transition-delay: 1.8s;
        }
    </style>
</head>
<body>
<div class="tbody">
    <div class="tm">
        <img src="http://phpdiansang.top/img/fj1.jpg" />
        <span class="line-top"> </span>
        <span class="line-right"></span>
        <span class="line-bottom"></span>
        <span class="line-left"></span>
    </div>
</div>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值