脫字元號 Bootstrap 類


使用脫字元號指示下拉功能和方向。要獲得此功能,請將類名為 caret 與 <span> 元素一起使用。

你可以嘗試執行以下程式碼來實現 caret Bootstrap 類

示例

即時演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <p>Caret Example<span class = "caret"></span></p>
   </body>
</html>

更新於:2020 年 6 月 12 日

2K+ 條瀏覽

啟動你的 職業

透過完成課程獲得認證

開始
廣告
© . All rights reserved.