Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
HTML & Bootstrap
Search
Jeremy Yen
October 22, 2013
Technology
0
210
HTML & Bootstrap
Tutorial In Action
Jeremy Yen
October 22, 2013
Tweet
Share
More Decks by Jeremy Yen
See All by Jeremy Yen
dEXonation
jeremy5189
0
100
A day of full stack developer @ NFU
jeremy5189
0
200
Club Mate and Hacker - 34C3 @ SITCON
jeremy5189
2
620
SITCON 2017 論壇系統開發分享 @ SITCON 2017 Summer
jeremy5189
0
200
poManeuver: Poland into space
jeremy5189
0
350
How we hacked a forum
jeremy5189
0
340
Bdecisive - Booking.com Taipei Hack 2nd Prize
jeremy5189
0
480
Social Intelligence Smart-device project
jeremy5189
0
60
IoT made easy @ SITCON x HK
jeremy5189
0
97
Other Decks in Technology
See All in Technology
PHP"オレ"カンファレンスの告知
ysknsid25
0
320
自動生成を活用した、運用保守コストを抑える Error/Alert/Runbook の一元集約管理 / Centralized management of Error/Alert/Runbook to minimize operational costs using automated code generation
biwashi
9
2.1k
コードを書く隙間を見つけて生きていく技術/Findy 思考の現在地
fujiwara3
24
4.8k
The CloudCompare project by Dr. Daniel Girardeau-Montaut
kentaitakura
0
500
Amplify Gen2を 拡張してみよう JAWS-UG北陸新幹線 ( 福井開催 ) 2024-04-06/Let's extend Amplify Gen2
fossamagna
0
280
Autonomous Database Cloud 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
13
35k
「共通基盤」を超えよ! 今、Platform Engineeringに取り組むべき理由
jacopen
25
5.7k
【SORACOM UG】SIM Deep Dive セキュアエレメント編
soracom
PRO
0
250
Delivering Millions of Messages within seconds @ Duolingo
pelelgrino
0
320
Microsoft Cloudで開発ライフサイクルを保護する
kkamegawa
0
140
WebアプリケーションにおけるPDOの使い方入門 / phpcon odawara 2024
meihei3
2
420
PHPカンファレンス小田原2024
ysknsid25
2
660
Featured
See All Featured
Robots, Beer and Maslow
schacon
PRO
154
7.9k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
352
28k
Product Roadmaps are Hard
iamctodd
43
9.7k
Reflections from 52 weeks, 52 projects
jeffersonlam
343
19k
Adopting Sorbet at Scale
ufuk
67
8.6k
Done Done
chrislema
178
15k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
320
20k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
118
38k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.8k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
20
1.6k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
Writing Fast Ruby
sferik
619
60k
Transcript
HTML & Bootstrap Tutorial In Action NTUST Jeremy Yen
HTML REVIEW http://office.ntustsg.com/bootstrap.zip 2
基本⾴頁⾯面 <!DOCTYPE html> <html> <head> ! <title>頁面標題</title> ! <meta http-equiv="content-type"
content="text/ html;charset=utf-8" /> </head> <body> ! <!-- 頁面內容 --> </body> </html> 3
連結 <a href="連結位置" title="滑鼠小提示文 字" target="_blank">顯示文字</a> 加入 target="_blank" 會使連結在新視窗 開啟
4
圖⽚片 <img src="圖片位置" alt="圖片說明" title="滑鼠小提示文字"/> 5
可點選的圖⽚片 <a href="http:/ /www.google.com"> ! <img src="google.png"> </a> 6
標題 <h1>標題</h1> <h2>標題</h2> <h3>標題</h3> <h4>標題</h4> 數字越大字型越小 7
⽂文件結構 <p>文章段落</p> <div>分區標籤</div> <span>小分區標籤</span> <br/> 換行 <hr/> 水平線 8
⽂文字樣式 <strong>粗體</strong> <i>斜體</i> <del>刪除線</del> 9
列表 <ul> ! <li>項目</li> ! <li>項目</li> </ul> 10
表單 <form method="POST" action=""> ! <legend>標題</legend> ! <input type="text" value="輸入值">
! <select> ! ! <option value="">下拉選單</option> ! </select> ! <button>按鈕</button> </form> 11
ID / Class <a href="連結位置" id="link" class= "link">顯示文字</a> 同 ID
在同一個頁面只能出現一個 12
ID 選擇器 <style> ! #link { ! ! color: red;
! } </style> 13
Class 選擇器 <style> ! .link { ! ! color: red;
! } </style> 14
Try It 在⼀一個⾴頁⾯面中隨便加⼊入上述元素 15
Twitter Bootstrap 開放的 CSS 樣式資源庫 16
使⽤用⽅方法 <link href="bootstrap.css" rel="stylesheet"> 17
⾺馬上⽣生效 18
運作原理 將你的 HTML 加⼊入特定 class 後,Bootstrap CSS 會 ⾃自動套⽤用樣式上去 19
參考 • 官⽅方⽂文件與範例 • http://getbootstrap.com/2.3.2/base-css.html • COSCUP 2012 簡報 •
https://speakerdeck.com/evenwu/twitter- bootstrap-hao-yong-de-wang-ye-she-ji- kuang-jia-1 20
⾺馬上動⼿手 ⾄至參考網站複製 HTML 並編輯教材裡的 index.htm 21