<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>定位练习1</title>
    <style type="text/css">
        .con{
            width:100px;
            height:100px;
            background-color:gold;
            margin:50px auto 0;

            position:relative;
            border-radius:14px;  /* 角是圆的 */
        }

        .box{
            width:28px;
            height:28px;
            background-color:red;
            color:#fff;
            text-align: center;
            line-height:28px;

            position:absolute;
            left:86px;
            top:-14px;

            border-radius:14px; /* 圆形 */
        }
    </style>
</head>
<body>
    <div class="con">
        <div class="box">5</div>
    </div>
</body>
</html>

页面效果:
css 制作圆角、圆形图形布局

 

相关文章:

  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2021-09-23
  • 2022-01-28
  • 2021-05-29
  • 2021-11-17
  • 2022-02-14
  • 2021-04-24
相关资源
相似解决方案