zoukankan      html  css  js  c++  java
  • 02-CSS基础与进阶-day1-录像293

    03超链接选择器简写.html

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Document</title>
        <style>
            /*相当于a:link的未访问的链接样式*/
            a {
                font-size: 16px;
                font-weight: 700;
                color: gray;
            }
            /* 有:  这种为伪类*/
            /* 鼠标悬停效果*/      
            a:hover {
                color: red;
            }
        </style>
    </head>
    <body>
        <a href="#">秒杀</a>
    </body>
    </html>

    04结构伪类选择器.html

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Document</title>
        <style>
            /*
             li:first-child {
                 color: blue;
             }
    
             li:last-child {
                 color: green;
             }
    
              选择第三个孩子*/
             /*li:nth-child(3) {
                 color: yellow;
             }
             */
             /* n 0 1 2   li编号从1开始编号*/
             /* li:nth-child(2n-1) {
                 color: skyblue;
             } */
             /* odd奇数
             li:nth-child(odd) {
                 font-size: 20px;
             }
                even 偶数
             li:nth-child(even) {
                 font-size: 30px;
             }
             */
             /* 倒数*/
             li:nth-last-child(even) {
                 color: red;
             }
        </style>
    </head>
    <body>
        <ul>
            <li>aaaaa</li>
            <li>bbbbbb</li>
            <li>ccccc</li>
            <li>ddddddddd</li>
            <li>eeeeee</li>
            <li>ffffff</li>
        </ul>
    </body>
    </html>
  • 相关阅读:
    3--Selenium环境准备--Eclipse 引入 selenium-server包
    2--Selenium环境准备--第一次使用Testng
    1--Selenium环境准备--Eclipse 添加Testng插件
    2--Jmeter 4.0--Excel 数据驱动 接口测试
    1--Jmeter4.0连接Oracle数据库
    冲刺第六天
    构建执法阅读笔记5
    学习进度八
    冲刺第五天
    冲刺第四天
  • 原文地址:https://www.cnblogs.com/HiJackykun/p/11033082.html
Copyright © 2011-2022 走看看