zoukankan      html  css  js  c++  java
  • css自定义开关(一个圆里有一个x)

    .close:hover{cursor:pointer;}
    .close {
    background:gray;
    color:white;
    border-radius: 12px;
    line-height: 20px;
    text-align: center;
    height: 20px;
    20px;
    font-size: 18px;
    padding: 1px;
    position:absolute;
    left: 91%;
    top:-21px;
    }

    .close::before {
    content: "2716";
    }

    <div style="height: 80px; 80px; border: 1px solid black; position: relative;">
    <span class="close"></span>
    </div>

  • 相关阅读:
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
  • 原文地址:https://www.cnblogs.com/ey-151210/p/5238468.html
Copyright © 2011-2022 走看看