css画对钩|钩子

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>css画对钩|钩子</title>
  </head>
  <style>
    body {
      background-color: green;
    }
    .choice{
      width:48px;
      height: 48px;
      border-radius: 50%;
      background-color: #FF4B10;
      position: relative;
    }
    .icon{
      position: absolute;
      left: 17px;
      top:10px;
      width: 12px;
      height: 20px;
      border-color: #FFF;
      border-style: solid;
      border-width: 0px 5px 5px 0px;
      transform: rotate(45deg);
    }
  </style>
  <body>
    <div class="choice">
      <div class="icon"></div>
    </div>
  </body>
</html>

 

posted @ 2023-03-06 10:47  刘金宇  阅读(120)  评论(0编辑  收藏  举报