• css-icons


    1. 关闭图标

    <span class="close"></span>
    .close{
        display: inline-block;
        width: 14px;
        height: 1px;
        background: #95835e;
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
    }
    .close:after {
        content: '';
        display: block;
        width: 14px;
        height: 1px;
        background: #95835e;
        transform: rotate(-90deg);
        -webkit-transform: rotate(-90deg);
    }

    2. 空心三角形

      2.1 向上的空心三角形

      

    <span class="arrowUp"></span>
    .arrowUp:after {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-top: 1px solid #656565;
        border-right: 1px solid #656565;
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
    }

      2.2 向右的空心三角形

    原理:用after伪元素画了一个矩形,只描绘了上边框和右边框,这样就形成了一个箭头的形状,然后再用transform属性调整角度实现不同的朝向。这里就举了两个方向的例子,其他两个方向只要改一下角度即可。

     
     
    <span class="arrowUp"></span>
    .arrowUp:after {
        content: '';
        display: inline-block;
         8px;
        height: 8px;
        border-top: 1px solid #656565;
        border-right: 1px solid #656565;
        transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
    }
    

      3 向上三角形

    #triangle-up {
        width: 0;
        height: 0;
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-bottom: 100px solid red;
    }
  • 相关阅读:
    总结:python
    Create form:class CreateWindow(Form)
    create sheets: ViewSheet.Create(doc, titleblock.Id)
    create a wall:Wall.Create(doc, line, baseLevel.Id, False)
    creat floor
    excel导入
    Vim正则通配符使用心得
    SVN仓库迁移到Git的完美解决办法
    SVN仓库迁移到Git遇到的两个问题和解决办法
    PGI Compiler for OpenACC Output Syntax Highlighting
  • 原文地址:https://www.cnblogs.com/drop-in-ocean/p/7519101.html
Copyright © 2020-2023  润新知