Blockquote类在Bootstrap 4 Beta 3中不显示行 [英] Blockquote class doesn't show lines in Bootstrap 4 Beta 3

查看:113
本文介绍了Blockquote类在Bootstrap 4 Beta 3中不显示行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个简单的blockquote HTML元素.我添加了Bootstrap blackquote类,并期望使用行来显示更大的字体.但是,字体变大了,但是线条根本没有出现.

I have two simple blockquote HTML elements. I added Bootstrap blackquote class and expected bigger font with lines. However, the fonts become bigger but the lines don't appear at all.

我在其中使用blockquote元素的HTML部分.

HTML section where I use the blockquote elements.

<section>

        <blockquote class="blockquote">
            Text for the blockquote. Text for the blockquote.
            Text for the blockquote. Text for the blockquote.
            Text for the blockquote. Text for the blockquote.
            Text for the blockquote. Text for the blockquote.
            Text for the blockquote. Text for the blockquote.
            Text for the blockquote. Text for the blockquote.
        </blockquote>

        <blockquote class="blockquote">
            Text for the blockquote. Text for the blockquote.
            Text for the blockquote. Text for the blockquote.
            Text for the blockquote. Text for the blockquote.
            Text for the blockquote. Text for the blockquote.
            Text for the blockquote. Text for the blockquote.
            Text for the blockquote. Text for the blockquote.
        </blockquote>

    </section>

我尝试了具有不同Bootstrap版本的blockquote类.当我从Beta更改为Alpha版本时,这些行立即出现.但是,Bootstrap 4 Beta 3不会显示这些行.我是在做错什么,还是从Beta版本的blackquote类中删除了这些行?

I tried blockquote classes with different Bootstrap releases. The lines immediately appeared when I changed from Beta to Alpha release. Bootstrap 4 Beta 3 doesn't, however, show the lines. Am I doing something wrong or have the lines been dropped from the blackquote class in the Beta releases?

推荐答案

您是这个意思吗?

<section>
  <blockquote class="blockquote text-center">
    <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> 
</section>

查看我的 codepen .

这篇关于Blockquote类在Bootstrap 4 Beta 3中不显示行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆