博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
每日分享{ 选择器}
阅读量:38313 次
发布时间:2022-01-23

本文共 1191 字,大约阅读时间需要 3 分钟。

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document</title>

    <style>

        .wrap div [class=box1]{

            color: brown;

        }

        .wrap p [class=box1]{

            color: blue;

        }

        .wrap input[type=text]{

            color: aqua;

        }

        ol li:nth-child(2n+1){

            background-color: blue;

        }

        ol p:nth-child(2){

            background-color: brown;

        }

        ol div:nth-child(6){

            background-color: darkblue;

        }

    </style>

</head>

<body>

    <div class="wrap">

        <div class="box1"></div>

        <p class="box1"></p>

        <div class="box2">222</div>

        <div class="box3">333</div>

        <div class="box4">444</div>

        <input type="text" value="文本">

        <div class="box1"></div>

        <p class="box1"></p>

        <div class="box2">222</div>

        <div class="box3">333</div>

        <div class="box4">444</div>

        <input type="text" value="文本">

        <div class="box1"></div>

        <p class="box1"></p>

        <div class="box2">222</div>

        <div class="box3">333</div>

        <div class="box4">444</div>

        <input type="text" value="文本">

        <div class="box1"></div>

        <p class="box1"></p>

        <div class="box2">222</div>

        <div class="box3">333</div>

        <div class="box4">444</div>

        <input type="text" value="文本">

    </div>

</body>

</html>

转载地址:http://qweuuy.baihongyu.com/

你可能感兴趣的文章
nginx 反向代理,动静态请求分离,proxy_cache缓存及缓存清除
查看>>
nginx 的proxy_cache才是王道
查看>>
Nginx proxy_cache 使用示例
查看>>
Nginx源代码分析 - 日志处理
查看>>
使Apache实现gzip压缩
查看>>
Memcached在大型网站中应用
查看>>
Hadoop简要介绍
查看>>
squid中的X-Cache和X-Cache-Lookup的意义
查看>>
squid 优化指南
查看>>
centos vnc配置笔记
查看>>
让Squid 显示本地时间
查看>>
linux mysql 命令 大全
查看>>
清除Squid缓存的小工具
查看>>
Varnish Cache 3.0.0安装
查看>>
2011年6月编程语言关注度排行
查看>>
Varnish使用小结
查看>>
千万级并发HAproxy均衡负载系统介绍
查看>>
什么是A记录、MX记录、CNAME记录
查看>>
MongoDB简介
查看>>
Varnish purges 缓存清除
查看>>