Bootstrap pull-right 類


在任何 HTML 文本週圍使用預設 <blockquote>。您還可以透過 <small> 標記來標識引用來源,並使用類 .pull-right: 對引用塊進行右對齊:

示例

 即時演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap pull-right class</title>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
      <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
   </head>
   <body>
      <blockquote>
         <p>This is a default blockquote example. This is a default
            blockquote example. This is a default blockquote
            example.This is a default blockquote example. This is a
            default blockquote example.</p>
      </blockquote>
      <blockquote>
         This is a blockquote with a source title.
         <small>Someone famous in <cite title = "Source Title">Source Title</cite></small>
      </blockquote>
      <blockquote class = "pull-right">This is a blockquote aligned to the right.
         <small>Someone famous in <cite title = "Source Title">Source Title</cite></small>
      </blockquote>
   </body>
</html>

更新時間: 2020 年 6 月 12 日

311 次瀏覽

開啟你的職業生涯

完成本課程,獲得認證

開始
廣告
© . All rights reserved.