admin管理员组

文章数量:1390890

Using a Bootstrap dropdown button inside of a card renders properly with Firefox. But when using Safari (on Desktop), the part of the menu that is outside of the card cannot be hovered or clicked.

The menu works as supposed to, when I move it outside of a card.

Fiddle demo

<html>

<head>
  <link rel="stylesheet" href=".4.1/css/bootstrap.css" />
  <link rel="stylesheet" href=".7.0/css/font-awesome.css" />
</head>

<body>

  <main role="main" class="container">
    <div id="content">
      <div class="card-columns">
        <div class="card bg-light">
          <div class="card-body">
            <div class="dropdown">
              <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
              Manage
            </button>
              <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">

                <a class="dropdown-item" href="#">Link 1</a>
                <a class="dropdown-item" href="#">Link 2</a>

              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </main>

  <script src=".4.1/jquery.min.js"></script>
  <script src=".js/1.16.0/umd/popper.js"></script>
  <script src=".4.1/js/bootstrap.js"></script>

</body>

</html>

本文标签: