Bootstrap 21-31

21 - Create a Bootstrap Row

  • 在 div.container 層級下添加一個 div.row

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
  </div>
</div>

22 - Split your Bootstrap Row

  • 分開 bs row,分成兩個 col

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6"> 666
    </div>

    <div class="col-xs-6"> 777
    </div>

  </div>
</div>

23 - Create Bootstrap Wells

  • div.well 可以產生有陰影的、凹陷的 div

  • 會有視覺上的深度感

  • well ... 為什麼是這個名字 orz,井的意思?

24 - Add Elements within your Bootstrap Wells

25 - Apply the Default Bootstrap Button Style

  • btn 是灰色扁平圓框

  • btn-default 是醜醜的白色突出圓框

  • btn btn-default 是白色扁平圓框

26 - Create a Class to Target with jQuery Selectors

  • 幫 button 新增一個 class

  • 之後給 jQuery 選擇用

27 - Add ID Attributes to Bootstrap Elements

  • 添增 id 屬性

  • 不確定之後會不會用到

28 - Label Bootstrap Wells

  • 增加一個 h4 幫助理解排版布局

29 - Give Each Element a Unique ID

  • 每個元素都要有獨特的 id

30 - Label Bootstrap Buttons

  • 也幫 button 標籤一下

31 - Use Comments to Clarify Code

  • html 的註解

Last updated

Was this helpful?