zoukankan      html  css  js  c++  java
  • 时间线

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
    </head>
    <style>
        .content{
            margin-left: 20px;
        }
        .circledot{
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #70A0FF;
            border: 2px solid #d6ecff;
            transform: translateX(-50%);
        }
        .line{
            border-left: 1px solid red;
        }
    </style>
    <body>
    <div class="content">
        <div class="line">
            <div class="circledot"></div>
            <div>123213</div>
            <div>97slkfj</div>
        </div>
        <div class="line">
            <div class="circledot"></div>
            <div>123213</div>
            <div>97slkfj</div>
            <div>123213</div>
        </div>
        <div class="circledot"></div>
    </div>
    </body>
    </html>

    /**
    * @Description:  时间线
    * @date:        2021/9/29
    */
    <template>
        <div class="content">
            <div class="line">
                <div class="circledot">
                    <span>2021</span>
                </div>
            </div>
            <div class="line">
                <div class="darkcircledot"></div>
            </div>
            <div class="line">
                <div class="circledot"></div>
            </div>
        </div>
    </template>
    <script>
    export default {
        name: 'timeline',
        components: {
        },
        props: {
    
        },
        data () {
            return {
            }
        },
        methods: {
    
        }
    }
    </script>
    <style lang="less" scoped>
    .content{
        margin-left: 20px;
        margin-top: 20px;
    }
    .circledot{
        transform: translateY(-50%);
        &:before{
            content: "";
            display: inline-block;
            background: url("./yuan.png")  center/contain no-repeat;
            width: 10px;
            height: 10px;
            transform: translateX(-55%);
        }
    }
    .darkcircledot{
        transform: translateY(-50%);
        &:before{
            content: "";
            display: inline-block;
            background: url("./hyan.png")  center/contain no-repeat;
            background-size: 100%;
            width: 8px;
            height: 8px;
            transform: translateX(-55%);
        }
    }
    .line{
        border: 1px dashed red;
    }
    </style>
  • 相关阅读:
    伯努利数学习笔记
    bzoj 3864: Hero meet devil(dp套dp)
    CF1137E. Train Car Selection(可删堆)
    洛谷P3779 [SDOI2017]龙与地下城(概率论+Simpson+FFT)
    洛谷P4207 [NOI2005]月下柠檬树(计算几何+自适应Simpson法)
    AtCoder Grand Contest 030题解
    Sort函数(C++)
    堆排序
    十进制--->二进制(利用C++栈功能)
    对局匹配
  • 原文地址:https://www.cnblogs.com/javascript9527/p/15352558.html
Copyright © 2011-2022 走看看