📜  bootstrap blockquote (1)

📅  最后修改于: 2023-12-03 15:29:38.838000             🧑  作者: Mango

Bootstrap Blockquote

Bootstrap blockquote is a style that can be applied to a block of text to visually distinguish it from other text on the page, usually used to quote someone or display a message.

How to use Bootstrap Blockquote

Using Bootstrap blockquote is very easy. Simply wrap your text in the <blockquote> tag and use the .blockquote class on the tag.

<blockquote class="blockquote">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam viverra eget erat non laoreet. Vivamus consequat consectetur tellus vel dictum. 
</blockquote>
Blockquote Variations

There are several variations of Blockquote in Bootstrap:

Blockquote with author

Include a footer to cite the source of the quote.

<blockquote class="blockquote">
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
    <footer class="blockquote-footer">Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
Reverse blockquote

Switches the order of the content and a slightly darker color.

<blockquote class="blockquote blockquote-reverse">
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
    <footer class="blockquote-footer">Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
More Options

There are more options available for Bootstrap blockquote, such as:

  • .blockquote-primary
  • .blockquote-secondary
  • .blockquote-success
  • .blockquote-danger
  • .blockquote-warning
  • .blockquote-info
  • .blockquote-light
  • .blockquote-dark

These classes can be used to customize the background color of the blockquote.

Conclusion

Bootstrap blockquote is powerful and easy-to-use style for displaying quotes or messages. By using various classes, you can easily customize the style to match your website's design. Try it out and see how it can enhance your content!