在Bootstrap 4.1.3中使用blockquote类时,将应用除侧边栏以外的效果。

这是教程中的外观:
html - Bootstrap 4.1.3:应用blockquote类时,侧栏不显示-LMLPHP

这是在我的浏览器(Chrome浏览器)中的外观:
html - Bootstrap 4.1.3:应用blockquote类时,侧栏不显示-LMLPHP

我已经在不同的浏览器中尝试过,但是无法通过post解决它。

就是我的电脑吗?是否有另一个CSS类覆盖边栏?谢谢你的帮助。

<!doctype html>
<html lang="en">
<head>
  <!-- Required meta tags -->
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

  <!-- Bootstrap CSS -->
  <link
    rel="stylesheet"
    href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
    integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
    crossorigin="anonymous">

  <title>Bootstrap</title>
</head>

<body>
  <div class="container">
    <blockquote class="blockquote">
      <p class="mb-0"> Text for the blockquote. Text for the blockquote.</p>
      <footer class="blockquote-footer">Someone famous in <cite title="Source Title">Source Title</cite></footer>
    </blockquote>
  </div>


  <!-- Optional JavaScript -->
  <!-- jQuery first, then Popper.js, then Bootstrap JS -->
  <script
      src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
      integrity="sha384- q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
    crossorigin="anonymous">
  </script>

  <script
    src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
    integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
    crossorigin="anonymous">
  </script>

  <script
    src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
    integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
    crossorigin="anonymous">
  </script>
</body>
</html>

最佳答案

您链接到的帖子似乎遇到了此错误,因为他正在使用Beta版的Bootstrap。某种情况下适合您吗?您是否检查了帖子中链接的Codepen?

10-07 17:37