<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <style>
            input{
                display: none;
            }
            label:before{
                content: '';
                display: inline-block;
                width: 3px;
                height: 3px;
                border: 1px solid red;
                border-radius: 50%;
                padding: 2px;
            }
            input:checked+label:before{
                background: red;
                background-clip: content-box;
            }
        </style>
    </head>
    <body>
        <input id="man" type="radio" name="gender" checked/>
        <label for="man"></label>
        <input id="woman" type="radio" name="gender" />
        <label for="woman"></label>
    </body>
</html>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-04
  • 2021-12-24
  • 2022-02-24
  • 2022-02-10
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2021-10-16
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案