<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title>test</title>
    <style>
      .btn {
        width: 100px;
        text-align: center;
        height: 50px;
        line-height: 50px;
        background: #000;
        color: #fff;
        position: relative;
      }
      .btn:after {
        position: absolute;
        content: '';   ------------主要是为了撑开容器div
        width: 30px;
        height: 30px;
        background: #fff;
        top: 10px;
        right: -15px;
        border-radius: 100%;
      }
    </style>
</head>
<body>
 <div class="btn">
   button
 </div>
</body>
</html>

如何用CSS实现矩形按钮右边缘的中间有个往里凹的小半圆

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2021-06-30
  • 2022-12-23
  • 2022-02-06
  • 2021-07-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案