<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title></title>
    <style media="screen">
      .callout{position: relative;
        width: 100px;
        height: 50px;
        background: #f00;
      }
      .callout::before{
        content: "";
        position: absolute;
        top: -.4em; left: 1em;
        padding: .35em;
        background: inherit;
        border: inherit;
        border-right:0;
        border-bottom:0;
        transform: rotate(45deg);
      }
    </style>
  </head>
  <body>
    <div class="callout">
      Only
    </div>
  </body>
</html>

通过css继承来实现气泡小三角

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-12-06
  • 2021-05-12
  • 2022-02-08
  • 2021-12-26
  • 2022-01-04
猜你喜欢
  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2021-08-25
相关资源
相似解决方案