知识补漏第二期

一.css设置的链接样式:

四个链接状态是:

a:link - 正常,未访问过的链接

a:visited - 用户已访问过的链接

a:hover - 当用户鼠标放在链接上时

a:active - 链接被点击的那一刻

并且这四个样式的执行顺序:“爱恨情仇”=LVHA=link.visited.hover.active(先后顺序)

二.动画内容回顾:

在为一些网页添加动态画面的时候课以通过动画进行实现。不过在写的时候要记住当在 @keyframes 创建动画,需要把它绑定到一个选择器,否则动画不会有任何效果。并且指定至少这两个CSS3的动画属性绑定向一个选择器:

1.规定动画的名称

2.规定动画的时长

下面图片上展示的是一些动画的相关属性

例如:

//html代码
<div style="width: 1260px;height:605px;background-color: aquamarine;">
        <!-- 冒泡 -->
        <div style="width: 300px;height: 150px;background-color: lightslategray;margin:auto;left:0;right: 0;">
            <ul>
                <li class="one"></li>
                <li class="two"></li>
                <li class="three"></li>
            </ul>
        </div>
        <!-- 圆环 -->
        <div style="position: relative; width: 150px;height:150px;background-color: antiquewhite;margin:auto;">
            <div
                style="position: absolute;width: 110px;height:110px;border-radius: 50%;background-color: white;margin:auto;left:0;right: 0;top: 0;bottom: 0;">
                <div class="qiu"
                    style="width: 65px;height:65px;margin-top: 13px;margin-left: 13px; border:10px solid white;border-radius: 50%;border-top-color: rgba(12, 171, 142, 0.982);">
                </div>
            </div>
        </div>
//css代码
        * {
            padding: 0;
            margin: 0;
        }

        ul {
            height: 150px;
            list-style: none;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        li {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            margin-right: 30px;
            background-color: rgb(111, 216, 211);
        }

        .one {
            animation: fang 1.2s infinite;
        }

        .two {
            animation: fang 1.2s infinite;
            animation-delay: 0.4s;
        }

        .three {
            animation: fang 1.2s infinite;
            animation-delay: 0.8s;

        }

        @keyframes fang {
            50% {
                background-color: rgb(44, 228, 234);
                transform: scale(1.4);
                /*放大1.1倍*/
                /* background: blue bottom right/50px 50px; */
            }
        }

        .qiu {
            animation: circle 1s infinite linear;
        }

        @keyframes circle {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值