zoukankan      html  css  js  c++  java
  • [ css 计数器 counter ] css中counter计数器实例演示三

    <!DOCTYPE html>
    <html lang='zh-cn'>
    <head>
    <title>Insert you title</title>
    <meta http-equiv='description' content='this is my page'>
    <meta http-equiv='keywords' content='keyword1,keyword2,keyword3'>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style type='text/css'>
        .reset { padding-left: 20px; counter-reset: wangxiaoer; font:400 16px/1.2em Courier New; }
        .counter:before { content: counters(wangxiaoer, '-') '. '; counter-increment: wangxiaoer;  }
    </style>
    </head>
    <body>
        <div class="reset">
            <div class="counter">我是王小二
                <div class="reset">
                 <div class="counter">我是王小二的大儿子</div>
                    <div class="counter">我是王小二的二儿子
                        <div class="reset">
                            <div class="counter">我是王小二的二儿子的大孙子</div>
                            <div class="counter">我是王小二的二儿子的二孙子</div>
                            <div class="counter">我是王小二的二儿子的小孙子</div>
                        </div>
                    </div>
                    <div class="counter">我是王小二的三儿子</div>
                </div>
            </div>
            <div class="counter">我是王小三</div>
            <div class="counter">我是王小四
                <div class="reset">
                    <div class="counter">我是王小四的大儿子</div>
                </div>
            </div>
        </div>
    </body>
    </html>
  • 相关阅读:
    简历的快速复制
    使用stringstream对象简化类型转换
    猴子吃桃
    new和delete运算符
    绘制正余弦曲线
    计算学生的平均成绩
    判断是否为回文字符串
    统计各种字符个数
    验证用户名
    回溯法(挑战编程)
  • 原文地址:https://www.cnblogs.com/mysearchblog/p/5649545.html
Copyright © 2011-2022 走看看