zoukankan      html  css  js  c++  java
  • css画叉叉(一般用于关闭按钮)

    css

    一般用于右上角关闭弹窗
    #pdclose {
           18px;
          height: 18px;
          cursor: pointer;
          float: right;
          position: relative;
          overflow: hidden;
          margin-top: 10px;
        }
    
        #pdclose:after {
           100%;
          position: absolute;
          height: 1.5px;
          background: #fff;
          content: "";
          top: 9px;
          left: 0;
          transform: rotate(134deg);
          -ms-transform: rotate(134deg);
          -moz-transform: rotate(134deg);
          -webkit-transform: rotate(134deg);
          -o-transform: rotate(134deg);
    
        }
    
        #pdclose:before {
           100%;
          position: absolute;
          height: 1.5px;
          background: #fff;
          content: "";
          top: 9px;
          right: 0;
          transform: rotate(45deg);
          -ms-transform: rotate(45deg);
          -moz-transform: rotate(45deg);
          -webkit-transform: rotate(45deg);
          -o-transform: rotate(45deg);
        }
    

    html

    <span id="pdclose"></span>
    

    效果

  • 相关阅读:
    cp
    usr/sbin/inetd
    mysql
    Iptables的规则语法
    CentOS系统安装过程中配置软RAID-0或RAID-1
    25道shell面试题
    虚拟机
    进入单用户模式
    正则表达式
    js操作div的显隐
  • 原文地址:https://www.cnblogs.com/kerin/p/13548967.html
Copyright © 2011-2022 走看看