系列首篇《Bootstrap 3.0 學習系列:從零開始》已介紹框架背景與版本差異。微軟 Visual Studio 2013 內建 Bootstrap 3,確立了其主流地位。本文將手把手帶你完成下載、解壓、引入 jQuery、撰寫第一個響應式頁面模板,並說明 IE9 相容性處理與停用響應式的方法。
官網提供「已編譯壓縮版」下載,解壓後包含三個資料夾:
bootstrap.css(未壓縮)、bootstrap.min.css(生產環境推薦)、bootstrap-theme(.min).css(可選主題)bootstrap.js、bootstrap.min.js(需搭配 jQuery)
bower.json 註明相依 jQuery ≥ 1.9.0。建議直接下載 jQuery 2.0.3 min 放入 js/ 目錄。



提醒:所有 Bootstrap JS 插件皆依賴 jQuery;正式專案請使用 .min.* 壓縮版以減少頻寬。
建立 index.html,包含五大關鍵區塊:
<!DOCTYPE html><html>...</html><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">(確保行動裝置正確繪製與縮放)bootstrap.min.css 與 bootstrap-theme.min.css<!--[if lt IE 9]> ... html5shiv.js + respond.min.js <![endif]-->(讓 IE6-8 支援 HTML5 標籤與 Media Queries)jquery.min.js → bootstrap.min.js(順序不可倒置)<h1>Hello, world!</h1>
若專案不需響應式,官方文件提供停用步驟:
<meta name="viewport">.container 設定固定寬度(如 width: 970px !important;).navbar-collapse 等).col-xs-* 強制桌面佈局
環境就緒、第一個響應式頁面跑通。下一篇將深入 Bootstrap 佈局系統(容器、列、欄位)與核心 CSS 樣式。