使用 Bootstrap 強制隱藏一個元素


使用 Bootstrap 中的 .hidden 類強制隱藏一個元素

示例

即時演示

<!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 class = "show">This is visible.</p>
      <p class = "hidden">This is hidden.</p>
   </body>
</html>

更新於:2020 年 6 月 12 日

110 次瀏覽

開啟您的 職業生涯

透過學習課程獲得認證

開始吧
廣告
© . All rights reserved.