代码

Html代码:

<div>
    <img src="https://webstatic.mihoyo.com/ys/event/e20210317-fab/images/bg.fc8c01f4.jpg" alt="">
</div>

CSS代码:

* {
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: #424242;
}

div img {
    width: 400px;
    position: absolute;
    left: 50%;
    top: 40%;
    margin-left: -200px;
    cursor: pointer;
    transition: all 0.6s;
}

div img:hover{
    transform: scale(1.7);
}

说点什么
你是我一生只会遇见一次的惊喜...
支持Markdown语法
好耶,沙发还空着ヾ(≧▽≦*)o
Loading...