效果图:

CSS完成 退出按钮、关闭按钮-->X

 

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>菜秒笔记</title>
        <style type="text/css">
            #box{
                margin: 50px auto;
                width: 400px;
                height: 30px;
                border: 1px solid #999;
            }
            #out{
                float: right;
                width: 30px;
                height: 30px;
                border-radius: 50%;
                color: #999;
                text-align: center;
                font-size: 12px;
                line-height: 30px;
                cursor: pointer;
                transition: .2s;
                user-select:none;
            }
            #out:hover{
                color: black;                
            }

        #out:active{
          background-color:rgba(0,0,0,.2)
        }

</style>
    </head>
    <body>
        <div >
            <div >X</div>
        </div>
        
    </body>
</html>

相关文章:

  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-11-25
  • 2021-11-05
  • 2022-01-23
  • 2022-12-23
猜你喜欢
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
相关资源
相似解决方案