Title1

Title2

Title3

2-9 上課練習


  <div class="container">
    <div class="row">
      <div class="col">1</div>
      <div class="col">2</div>
      <div class="w-100"></div>
      <div class="col">3</div>
      <div class="col">4</div>
    </div>
  </div>
  <hr>
  <div class="container">
    <div class="row">
      <div class="col-1 border border-primary">
        <div class="row">
          <div class="col-6 border border-secondary">a</div>
          <div class="col-6 border border-secondary">b</div>
        </div>
      </div>
      <div class="col-1 border border-primary">2</div>
      <div class="col-1 border border-primary">3</div>
      <div class="col-1 border border-primary">4</div>
      <div class="col-1 border border-primary">5</div>
      <div class="col-1 border border-primary">6</div>
      <div class="col-1 border border-primary">7</div>
      <div class="col-1 border border-primary">8</div>
      <div class="col-1 border border-primary">9</div>
      <div class="col-1 border border-primary">10</div>
      <div class="col-1 border border-primary">11</div>
      <div class="col-1 border border-primary">12</div>
      <div class="col-1 border border-primary">13</div>
      <div class="col-1 border border-primary">14</div>
    </div>
  </div>
  
  <hr>
  <div class="container">
    <div class="row">
      <div class="col-sm-4 col-md-3 border border-primary">1</div>
      <div class="col-sm-4 col-md-3 border border-primary">2</div>
      <div class="col-sm-4 col-md-3 border border-primary">3</div>
    </div>    
  </div>
<!DOCTYPE html>
<html lang="zh-Hant-TW">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <!-- css -->
    <style>
      .row{
        background: #aa0;
        border: 1px blue solid;
        height:200px;
      }
      .cell{
        background: #f00;
        padding: 10px;
      }
    </style>
    
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/popper.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
 
    <title>垂直對齊</title>
  </head>
  <body>
    <div class="container">
      <div class="row align-items-start my-3">
        <div class="col-2"><div class="cell">A</div></div>
        <div class="col-2 align-self-center"><div class="cell">B</div></div>
        <div class="col-2 align-self-end"><div class="cell">C</div></div>
      </div>
      <div class="row align-items-center mb-3">
        <div class="col-2"><div class="cell">A</div></div>
        <div class="col-2"><div class="cell">B</div></div>
        <div class="col-2"><div class="cell">C</div></div>
      </div>
      <div class="row align-items-end mb-3">
        <div class="col-2"><div class="cell">A</div></div>
        <div class="col-2"><div class="cell">B</div></div>
        <div class="col-2"><div class="cell">C</div></div>
      </div>
    </div>
 
  </body>
</html>

日曆

<!DOCTYPE html>
<html lang="zh-Hant-TW">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="css/bootstrap.min.css">
    
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/popper.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
 
    <title>日曆</title>
  </head>
  <body>
    <div class="container">
      <div class="row">
        <div class="col-8 offset-2">
          <div>
            .....
          </div>
        </div>
      </div>
    </div>
 
  </body>
</html>