美文网首页
css虚线上下箭头

css虚线上下箭头

作者: tuyrt7 | 来源:发表于2020-06-30 16:36 被阅读0次

效果图如下:


css虚线箭头.png
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <title>css虚线箭头</title>
        <style type="text/css">
            .arrow-dotted-up{
              width: 11px;
              height: 11px;
              display: inline-block;
              position: relative;
             /* 旋转180度 */
              /* transform: rotate(180deg) translateY(-250%); */
            }
            .arrow-dotted-up::before{
              content: '';
              position: absolute;
              border-left: 5px solid transparent;
              border-right: 5px solid transparent;
              border-top: 0 solid transparent;
              border-bottom: 10px solid #034d9a;
            }
            .arrow-dotted-up .line {
                box-sizing: border-box;
                position: absolute;
                width: 50%;
                height: 30px;
                top: 10px;
                border-right: 1px dashed #034d9a;
            }
            
            .arrow-dotted-down{
                width: 10px;
                height: 10px;
                display: inline-block;
                position: relative;
                top: 28px;
            }
            
            .arrow-dotted-down::before{
              content: '';
              position: absolute;
              border-left: 5px solid transparent;
              border-right: 5px solid transparent;
              border-top: 10px solid #034d9a;
              border-bottom: 0 solid transparent;
            }
            
            .arrow-dotted-down .line {
                box-sizing: border-box;
                position: absolute;
                width: 50%;
                height: 30px;
                top: -30px;
                border-right: 1px dashed #034d9a;
            }
            
        </style>
    </head>
    <body>
        <div class="arrow-dotted-up">
            <div class="line"></div>
        </div>
        
        
        <div class="arrow-dotted-down">
            <div class="line"></div>
        </div>
    </body>
</html>
 

相关文章

  • css虚线上下箭头

    效果图如下:

  • css 实现三角形箭头

    插入DOM 使用伪类 参考:用纯CSS实现的箭头CSS画三角形原理css整理 -- 右箭头,上下箭头,三角形 这个...

  • UML图

    修饰符 修饰符表达式public+protected#private- 类 依赖:虚线+箭头 实现:虚线+白箭头 ...

  • 菜单栏下拉箭头 css样式

    css利用相对定位 overflow隐藏,制作向下箭头。同理可做上下左右方向箭头

  • UML类图符号

    关系线:1.泛化 实线箭头2.实现 虚线箭头3.聚合 空棱形4.组合 实心棱形5.关联 实线小箭头6.依赖 虚线小箭头

  • 使用Markdown画UML

    使用sequence 简单样式 复杂样式 mermaid 类型描述->实线无箭头->虚线无箭头->>带箭头的实线-...

  • UML类图与类的关系详解

    虚线箭头指向依赖; 实线箭头指向关联; 虚线三角指向接口; 实线三角指向父类; 空心菱形能分离而独立存在,是聚合;...

  • UML类图详解(转载)

    虚线箭头指向依赖; 实线箭头指向关联; 虚线三角指向接口; 实线三角指向父类; 空心菱形能分离而独立存在,是聚合;...

  • PlantUML-时序图-2021-06-18-周五

    简单示例 ->,<-,<--,--> 这是箭头的意思,很形象;箭头分实线和虚线两种 :后面是箭头的描述信息 @...

  • UML类图与类的关系详解

    转载文章 虚线箭头指向依赖; 实线箭头指向关联; 虚线三角指向接口; 实线三角指向父类; 空心菱形能分离而独立存在...

网友评论

      本文标题:css虚线上下箭头

      本文链接:https://www.haomeiwen.com/subject/idvxqktx.html