> For the complete documentation index, see [llms.txt](https://virusking.gitbook.io/php/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://virusking.gitbook.io/php/11.-an-bootstrap.md).

# 10. 安裝BootStrap

官方網站：<http://twitter.github.io/bootstrap/index.html>

中文手冊：<http://kkbruce.tw/>

BootStrap 是一套CSS框架，您不懂CSS也沒關係，直接根據手冊說明，套用到網站上即可。

將下載的檔案解壓縮，並將解開的css、img、js 三個資料夾複製到程式的所在位置即可。

一個有套用Bootstrap的基本頁面：[view source](https://www.tad0616.net/modules/tad_book3/page.php?tbdsn=847#viewSource)[print](https://www.tad0616.net/modules/tad_book3/page.php?tbdsn=847#printSource)[?](https://www.tad0616.net/modules/tad_book3/page.php?tbdsn=847#about)

```
<!DOCTYPE html>
<html>
<head>
<title>標題</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
主內容
<script src="http://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>
```
