html - Bootstrap 4.1.3 : sidebar doesn't show up when applying blockquote class

标签 html css twitter-bootstrap sidebar blockquote

在 Bootstrap 4.1.3 中使用 blockquote 类时,除了侧边栏外,其他效果都会应用。

这是它在教程中的样子: enter image description here

这是它在我的浏览器(chrome)中的样子: enter image description here

我已经在不同的浏览器中试过了,我无法用这个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>

最佳答案

您链接到的帖子似乎遇到了这个错误,因为他使用的是 Bootstrap 的测试版。对你来说是这样吗?您是否检查过帖子中链接的代码笔?

关于html - Bootstrap 4.1.3 : sidebar doesn't show up when applying blockquote class,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53509813/

相关文章:

javascript - 扩展特定的列标题以包含向上/向下箭头

css - Bootstrap 的奇怪行为

css - 我是否需要将边框颜色指定为#value 和 rgba?

html - IE7 内联 block 容器内的 100% 宽度 block

html - 为什么我的 div 没有占据其父容器的 100% 高度?

php - SilverStripe 主题无法识别主页主题

javascript - 水平滚动时 HTML 表格标题与表格主体不对齐

css - sass intellisense Visual Studio 2015 @extend

html - Bootstrap 4 navbar justify-content-end 在 IE10 中不起作用

javascript - 如何针对不同的国家/地区测试我的网站?