zoukankan      html  css  js  c++  java
  • before和after的样式符号

    刷新:

    .widgets__icon_refresh{
        display:block;
        float:left;
        position:relative;
        width:16px;
        height:16px;
        padding:2px;
        border: 4px solid transparent;
        cursor:pointer;
    }
    
    .widgets__icon_refresh:before{
        position:absolute;
        content:"";
        display:block;
        width:calc(100% - 4px);
        height:calc(100% - 4px);
        border-radius:100%;
        border:2px solid #a7a7a7;
        border-top:2px solid transparent;
        -webkit-transform: rotate(45deg);
    }
    .widgets__icon_refresh:after{
        position:absolute;
        content:"";
        display:block;
        border: 7px solid transparent;
        border-left: 7px solid #a7a7a7;
        left:50%;
        top:-3.5px;
    }

    叉号:

    .widgets__icon_close{
        display:block;
        float:right;
        position:relative;
        width:16px;
        height:16px;
        border: 4px solid transparent;
        cursor:pointer;
    }
    
    .widgets__icon_close:before{
        position:absolute;
        content:"";
        display:block;
        width:1px;
        height:21px;
        border-right:2px solid #a7a7a7;
        -webkit-transform: rotate(135deg);
    }
    .widgets__icon_close:after{
        position:absolute;
        content:"";
        display:block;
        width:1px;
        height:21px;
        border-right:2px solid #a7a7a7;
        -webkit-transform: rotate(45deg);
    }

    注意:135+45=180度

  • 相关阅读:
    微信开发:MySQL utf8mb4 字符集
    Spring 事务
    Exception
    mysql系列之多实例介绍
    python连接MySQL
    1_archlinux_安装篇
    apache中如何调用CGI脚本
    1.1_Django简介及安装
    git分支合并脚本
    用python收集系统信息
  • 原文地址:https://www.cnblogs.com/liufeiran/p/12850046.html
Copyright © 2011-2022 走看看