css 实现 Popover 弹出框样式

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        body {
     
            margin: 20px;
        }
      .box {
     
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
        width: 200px;
        height: 100px;
        position: relative;
        border: 1px solid #ebeef5;
      }
      .arrow {
     
        border-width: 6px;
        position: absolute;
        width: 0;
        height: 0;
        border-color: transparent;
        border-style: solid;
        margin-left: -6px;
        top: -6px;
        left: 50%;
        border-top-width: 0;
        border-bottom-color: #ebeef5;
      }
      .arrow::after {
     
        content: " ";
        border-width: 6px;
        position: absolute;
        display: block;
        width: 0;
        height: 0;
        border-color: transparent;
        border-style: solid;
        top: 1px;
        margin-left: -6px;
        border-top-width: 0;
        border-bottom-color: #fff;
      }
    </style>
  </head>
  <body>
    <div class="box">
      <div class="arrow"></div>
    </div>
  </body>
</html>

相关推荐

  1. css 实现 Popover 样式

    2023-12-25 09:22:04       52 阅读
  2. vue 消息

    2023-12-25 09:22:04       31 阅读
  3. CSS编写登录样式

    2023-12-25 09:22:04       45 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-25 09:22:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-25 09:22:04       100 阅读
  3. 在Django里面运行非项目文件

    2023-12-25 09:22:04       82 阅读
  4. Python语言-面向对象

    2023-12-25 09:22:04       91 阅读

热门阅读

  1. STL--排序与检索

    2023-12-25 09:22:04       57 阅读
  2. gRPC之grpcurl

    2023-12-25 09:22:04       47 阅读
  3. Nginx基本配置内容

    2023-12-25 09:22:04       56 阅读
  4. iOS中常见的内存泄漏,及避免泄漏的最佳方案

    2023-12-25 09:22:04       50 阅读
  5. Rust 生命周期

    2023-12-25 09:22:04       55 阅读
  6. 【python数据分析】北京房租数据分析

    2023-12-25 09:22:04       61 阅读
  7. 【Redis】缓存预热

    2023-12-25 09:22:04       59 阅读