24h購物| | PChome| 登入
2023-01-14 08:26:17| 人氣8| 回應0 | 上一篇

網站架設 如何用bootstrap製作RWD網站

推薦 0 收藏 0 轉貼0 訂閱站台

1.jpg
起首先到BootStrap網站下載開源碼
https://v3.bootcss.com/getting-started/#download
然後把檔案放到根目錄的 CSS 及 js 目次下
打開檔頭在head中
  1. <head>
  2. </head>
網站架設 複製代碼

文章出處http://www.netyea.com/state-93.html

 

 

這行很主要一定要加入 否則手機瀏覽時不會自動縮放
完成
介紹
預編譯版 下載緊縮包以後,將其解緊縮到隨便目次便可看到以下(緊縮版的)
目錄佈局:
  1. bootstrap/
  2. ├── css/
  3. │   ├── bootstrap.css
  4. │   ├── bootstrap.css.map
  5. │   ├── bootstrap.min.css
  6. │   ├── bootstrap.min.css.map
  7. │   ├── bootstrap-theme.css
  8. │   ├── bootstrap-theme.css.map
  9. │   ├── bootstrap-theme.min.css
  10. │   └── bootstrap-theme.min.css.map
  11. ├── js/
  12. │   ├── bootstrap.js
  13. │   └── bootstrap.min.js
  14. └── fonts/
  15.     ├── glyphicons-halflings-regular.eot
  16.     ├── glyphicons-halflings-regular.svg
  17.     ├── glyphicons-halflings-regular.ttf
  18.     ├── glyphicons-halflings-regular.woff
  19.     └── glyphicons-halflings-regular.woff2
複製代碼
網站架設

 

加入下面代碼
  1. <link href="/css/bootstrap.css" rel="stylesheet">
  2. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  3. <script src="/js/bootstrap.js"></script>
  4. <meta name="viewport" content="width=device-width, initial-scale=1.0">
複製代碼
  1. <meta name="viewport" content="width=device-width, initial-scale=1.0">
複製代碼
網站架設

 



本文引用自:

台長: susanrut4
人氣(8) | 回應(0)| 推薦 (0)| 收藏 (0)| 轉寄
全站分類: 社會萬象(時事、政論、公益、八卦、社會、宗教、超自然) | 個人分類: NetYea |
此分類上一篇:php5與php7的區分是什麼

是 (若未登入"個人新聞台帳號"則看不到回覆唷!)
* 請輸入識別碼:
請輸入圖片中算式的結果(可能為0) 
(有*為必填)
TOP
詳全文