วิธีนำไปใช้งาน
copy โค้ดส่วนนี้ไปใส่ในส่วน <head>
โค้ด: เลือกทั้งหมด
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
Button Styles เป็นสีสันของปุ่มที่แตกต่างกัน มีทั้งหมด 7 สีให้เลือกใช้งาน และปุ่มสุดท้ายเป็นแบบลิงค์ ไม่มีกรอบของปุ่ม
โค้ด: เลือกทั้งหมด
<button type="button" class="btn">gray</button>
<button type="button" class="btn btn-default">white</button>
<button type="button" class="btn btn-primary">blue</button>
<button type="button" class="btn btn-success">green</button>
<button type="button" class="btn btn-info">blue</button>
<button type="button" class="btn btn-warning">orange</button>
<button type="button" class="btn btn-danger">red</button>
<button type="button" class="btn btn-link">Link</button>
โค้ด: เลือกทั้งหมด
<button type="button" class="btn btn-primary btn-lg">Large</button>
<button type="button" class="btn btn-primary btn-md">Medium</button>
<button type="button" class="btn btn-primary btn-sm">Small</button>
<button type="button" class="btn btn-primary btn-xs">XSmall</button>
โค้ด: เลือกทั้งหมด
<button type="button" class="btn btn-primary btn-block">Click</button>
โค้ด: เลือกทั้งหมด
<div class="container">
<button type="button" class="btn btn-primary">ปุ่มพื้นฐาน</button>
<button type="button" class="btn btn-primary active">ปุ่มที่กำลังใช้งานอยู่</button>
<button type="button" class="btn btn-primary disabled">ปุ่มที่ไม่สามารถใช้งานได้</button>
</div>