Pure css close button

前端 未结 11 515
[愿得一人]
[愿得一人] 2020-12-12 19:51

JSFiddle

Is there any way to make something like the X on that link with pure css?

\"enter

11条回答
  •  萌比男神i
    2020-12-12 20:20

    Hi you can used this code in pure css

    as like this

    css

    .arrow {
    cursor: pointer;
    color: white;
    border: 1px solid #AEAEAE;
    border-radius: 30px;
    background: #605F61;
    font-size: 31px;
    font-weight: bold;
    display: inline-block;
    line-height: 0px;
    padding: 11px 3px;
    }
    .arrow:before{
     content: "×";
    }
    

    HTML

     
    
    

    ​ Live demo http://jsfiddle.net/rohitazad/VzZhU/

提交回复
热议问题