显示 Bootstrap 类


若要显示一个 Bootstrap 类,请使用 .show 类。你可以尝试运行以下代码以使一个类可见

示例

现场演示

<!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>
      <div class = "row" style = "padding: 91px 100px 19px 50px;">
         <div class = "show" style = "left-margin:10px; width:300px; background-color:#ccc;">
            This class is visible.
         </div>
         <div class = "hidden" style = "width:200px; background-color:#ccc;">
            This is an example for hide class. This will be hidden.
         </div>
      </div>
   </body>
</html>

更新日期:12-6 月-2020

590 次浏览

开启你的 事业

通过完成课程获得认证

开始
广告