Bootstrap 3 บทช่วย สอน

Bootstrap เป็นเฟรมเวิร์ก HTML, CSS และ JavaScript ที่ได้รับความนิยมมากที่สุดสำหรับการพัฒนาเว็บไซต์ที่ตอบสนองและเน้นมือถือเป็นหลัก

Bootstrap สามารถดาวน์โหลดและใช้งานได้ฟรี!

เริ่มเรียนรู้ Bootstrap ทันที » เรียนรู้ Bootstrap

ลองด้วยตัวคุณเอง ตัวอย่าง

บทช่วยสอน Bootstrap นี้มีตัวอย่าง Bootstrap หลายร้อยตัวอย่าง

ด้วยโปรแกรมแก้ไขออนไลน์ของเรา คุณสามารถแก้ไขโค้ดและคลิกที่ปุ่มเพื่อดูผลลัพธ์

หน้า Bootstrap ที่ตอบสนอง

ตัวอย่าง Bootstrap

<div class="jumbotron text-center">
  <h1>My First Bootstrap Page</h1>
  <p>Resize this responsive page to see the effect!</p>
</div>

<div class="container">
  <div class="row">
    <div class="col-sm-4">
      <h3>Column 1</h3>
      <p>Lorem ipsum dolor..</p>
    </div>
    <div class="col-sm-4">
      <h3>Column 2</h3>
      <p>Lorem ipsum dolor..</p>
    </div>
    <div class="col-sm-4">
      <h3>Column 3</h3>
      <p>Lorem ipsum dolor..</p>
    </div>
  </div>
</div>

คลิกที่ปุ่ม "ลองด้วยตัวคุณเอง" เพื่อดูว่ามันทำงานอย่างไร



Bootstrap แบบฝึกหัด

ทดสอบตัวเองด้วยแบบฝึกหัด

ออกกำลังกาย:

เพิ่มชื่อคลาสที่ถูกต้องเพื่อแปลงรายการด้านล่างเป็นเมนูการแบ่งหน้า

<ul class="">
  <li><a href="#">1</a></li>
  <li><a href="#">2</a></li>
  <li><a href="#">3</a></li>
  <li><a href="#">4</a></li>
  <li><a href="#">5</a></li>
</ul>


Bootstrap Quiz Test

Test your Bootstrap skills at W3Schools!

Start Bootstrap Quiz!


Bootstrap References

At W3Schools you will find a complete Bootstrap reference of all CSS classes, Components, and JavaScript plugins - all with "Try it Yourself" examples:


Bootstrap Themes / Templates

We have made some Bootstrap Templates you can play around with. They are completely free to use:


Bootstrap 5 vs. Bootstrap 3 & 4

This tutorial follows Bootstrap 3, which was released in 2013. However, we also cover newer versions; Bootstrap 4 (released 2018) and Bootstrap 5 (released 2021).

Bootstrap 5 is the newest version of Bootstrap; with new components, faster stylesheets, more responsiveness etc. It supports the latest, stable releases of all major browsers and platforms. However, Internet Explorer 11 and down is not supported.

The main differences between Bootstrap 5 and Bootstrap 3 & 4, is that Bootstrap 5 has switched to JavaScript instead of jQuery.

Note: Bootstrap 3 and Bootstrap 4 is still supported by the team for critical bugfixes and documentation changes, and it is perfectly safe to continue to use them. However, new features will NOT be added to them.


Did You Know?

W3.CSS is an excellent alternative to Bootstrap.

W3.CSS is smaller, faster, and easier to use.

If you want to learn W3.CSS, go to our W3.CSS Tutorial.