• CSS基本语法


     

     

     

     优先级:就近原则

     

     

     

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>CSS a标签伪类</title>
    <style>
    a{
    color:blue;
    /*原始颜色*/
    }
    a:visited{
    color:black;
    /*浏览过后的颜色*/
    }
    a:hover{
    color:deeppink;
    /*鼠标放上去时的颜色*/
    }
    a:active{
    color:white;
    /*鼠标点击时的颜色*/
    }

    </style>
    </head>
    <body>
    <div>
    css允许针对a标枪的4种状态设置各自的css特性,叫做css伪类
    1:active一般不必写
    2:一定注意,顺序
    3:a:link可以简写为a
    <a href="#1">空链接</a>
    <a href="#2">空链接</a>
    <a href="#3">空链接</a>
    <a href="#4">空链接</a>
    </div>
    </body>
    </html>

     

    
    
  • 相关阅读:
    Postfix邮件服务
    Python
    LVS
    MFS
    Apache
    Zookeeper集群 + Kafka集群 + KafkaOffsetMonitor 监控
    shell 检测安装包
    shell ssh 批量执行
    shell 判断脚本参数
    bzoj 1500 修改区间 splay
  • 原文地址:https://www.cnblogs.com/barryliang/p/8370962.html
Copyright © 2020-2023  润新知