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
20141101簡報(HTML/CSS) day 02
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Sammy Lin
November 15, 2014
Education
180
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
20141101簡報(HTML/CSS) day 02
Sammy Lin
November 15, 2014
More Decks by Sammy Lin
See All by Sammy Lin
How to become a T-shaped talent as software developer
sammylin
0
220
2020-09-26_Kubernetes_Summit_帶你從無到有打造_Kubernetes_的環境_.pdf
sammylin
0
290
2020-01-08 Thinking after that disaster in cloud
sammylin
0
84
2019-10-17 17Media SRE Journey
sammylin
0
120
2017-06-23 How to design a automatic deployment system?
sammylin
0
170
2016-09-21 Rancher 傻瓜也會用的容器集群管理
sammylin
1
410
2016-07-06 跨牆工程師的中國 infra 小指南 @ DevOps Summit 2016
sammylin
19
2.1k
20141101簡報(HTML/CSS) day 03
sammylin
0
170
20141101簡報(HTML/CSS) day 01
sammylin
1
200
Other Decks in Education
See All in Education
Info Session MSc Computer Science & MSc Applied Informatics
signer
PRO
0
310
[2026前期火5] 論理学(京都大学文学部 前期 第13回)「走って、止まって、積み上がる」
yatabe
0
180
Soluciones al examen de Geografía 2026. JUNIO (Convocatoria Ordinaria)
juanmartin2026
1
8.9k
私たちはなんでテストするんだっけ? Ver.東北IT物産展2026 in 会津若松
camel_404
3
170
Beyond the Prompt: Programming as a Pathway to Statistical Thinking
minecr
0
330
Dashboards - Lecture 11 - Information Visualisation (4019538FNR)
signer
PRO
1
2.8k
BITCOIN : Les fondamentaux !
rlifchitz
0
220
【デザイナー就活講座】 デザイナー就活市場・企業探し・ポートフォリオのポイント
koheihasebe
0
440
Adobe Express
matleenalaakso
2
8.3k
人間のために、人間と共に働く時代の終わりの始まり
frievea
0
130
AI-Based Speaking Assessment of a Short-Term Study Abroad Program
uranoken
0
430
良書紹介08_ 頭のいい子がやっているすごいグラフの読み方
bunnchinn3
0
140
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
270
Color Theory Basics | Prateek | Gurzu
gurzu
0
430
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
250
Designing Experiences People Love
moore
143
24k
Side Projects
sachag
455
43k
Code Review Best Practice
trishagee
74
20k
Navigating Weather and Climate Data
rabernat
0
480
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
4.4k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.5k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Transcript
$44 傓䶺┮䷐崎峩⻇甒 5COO[.KP
$44 综劳⃬⃡*6/.
$44 *6/.倁 GNGOGPV
$44 *6/.倁 GNGOGPV <a herf=“http://www.pccu.edu.tw”>⽂文化⼤大學</a>
$44 *6/.倁 GNGOGPV <a herf=“http://www.pccu.edu.tw”>⽂文化⼤大學</a>
$44 *6/.倁 GNGOGPV <a herf=“http://www.pccu.edu.tw”>⽂文化⼤大學</a> 桬瘟㳺佅
$44 *6/.倁 GNGOGPV <a herf=“http://www.pccu.edu.tw”>⽂文化⼤大學</a> 桬瘟㳺佅 倱㩀㳺佅
$44 *6/.倁 GNGOGPV <a herf=“http://www.pccu.edu.tw”>⽂文化⼤大學</a> 桬瘟㳺佅 倱㩀㳺佅 ⽍㌈⛮䴒
$44 *6/.倁 GNGOGPV <a herf=“http://www.pccu.edu.tw”>⽂文化⼤大學</a> 桬瘟㳺佅 倱㩀㳺佅 ⽍㌈⛮䴒 ⽍㌈⌝
$44 *6/.倁 GNGOGPV <a herf=“http://www.pccu.edu.tw”>⽂文化⼤大學</a> 桬瘟㳺佅 ⑈ 倱㩀㳺佅 ⽍㌈⛮䴒 ⽍㌈⌝
$44 䵛倁GORV[GNGOGPVU <hr /> <br /> <img src="logo.png" />
$44 䵛倁GORV[GNGOGPVU <hr> <br> <img src="logo.png">
$44 *6/.㪗㲬
$44 <html> </html> <head> </head> <title> XXX </title> <body> </body>
<h1> ooo </h1> <p> ooo </p> 㳺峹䥥▀䠉⼒瓞⥉苌㚰耡Ⅷ↬㢝桬瘟㳺峹❭倱㩀㳺峹ℬ┮䥥羝峫
$44 桬瘟≧給給%55
$44 $44 $BTDBEJOH4UZMF4IFFU
$44 $44 $BTDBEJOH4UZMF4IFFU ℓ碉㴄ㇰ孉!
$44 $44 $BTDBEJOH4UZMF4IFFU ℓ碉㴄ㇰ孉!
$44 $44 $BTDBEJOH4UZMF4IFFU ℓ碉㴄ㇰ孉!
$44 %55嵿㾶
$44 %55嵿㾶 肞㞨⥉ { ! ! ! }
$44 %55嵿㾶 肞㞨⥉ { ! ! ! } ⽍㌈⛮䴒: ⽍㌈⌝;
.. .. ..
$44 %55嵿㾶 .main_menu { color: red; background: blue; }
$44 %55≠䠉㢚ㇰ
$44 %55≠䠉㢚ㇰ <span style="color: red;”>我是紅字</span> 行內套用 *OMJOF
$44 %55≠䠉㢚ㇰ <style type="text/css"> span { color: red; } </style>
嵌入套用 &NCFE
$44 %55≠䠉㢚ㇰ <link rel="stylesheet" href="style.css"> 外部連結 &YUFSOBM-JOL
$44 %55≠䠉㢚ㇰ <style type="text/css"> @import url(style.css); </style> 匯入套用 *NQPSU
$44 肞㞨⥉5GNGEVQT h1 { border: 1pt p.content { line-height: 180%;
.menu { menu_list > li { border-radius: 3px; hover { color: #FFFFFF; * { font-si menu { margin: auto 0; a:hover { c .menu_list > li { border-radius: 3px; #menu { margin: auto 0; nt-size: 16px }
$44 %55肞㞨⥉ 瓴⫀肞㞨⥉ )NQDCNUGNGEVQT 㔡㧪倁 \^ 倁肞㞨⥉ 6[RGUGNGEVQTU 㗨倁 I\^
%NCUU肞㞨⥉ %NCUUUGNGEVQTU 㗨%NCUU DPOUFOU\^ IIFBEFS\^ +&肞㞨⥉ +&UGNGEVQTU 㗨+& OBWJHBUJPO 劅倥肞㞨⥉ )TQWRUQHUGNGEVQTU 㗨䥥㔡㧪肞㞨⥉ IFBEFS GPPUFS I\^ 䧕俜肞㞨⥉ %JKNFEQODKPCVQT 㗨䧕俜⸱肞㞨 MJB\^ NFOVMJ\^ QUJNF\^ 砒⇄肞㞨⥉ &GUEGPFCPVEQODKPCVQT 㔡㧪砒⇄䥥肞㞨⥉ QB\^ DPOUFOUQ\^ 䧙聏肞㞨⥉ #FLCEGPVUKDNKPIEQODKPCVQT 㕟ⓛ䧙聏䥥倁 I Q\^ 資料來源:http://bit.ly/1AEwkgL
$44 ㄙ䠉%55⽍㌈ 2TQRGTVKGU
$44 ┮㥐啓 color : 顏色;
$44 綖㥐啓 background: 顏色;
$44 ㋯熝⨉%55孉䰛欰啓獑
$44 藏⻘青⾊色
$44 3(# 藏⻘青⾊色
$44 3(# )&9 藏⻘青⾊色
$44 3(# )&9 /BNF 藏⻘青⾊色
$44 3(# )&9 /BNF 耼職俦珮傁珮繷≧孉䰛 藏⻘青⾊色
$44 3(# )&9 /BNF 耼職俦珮傁珮繷≧孉䰛 rgb(95, 158, 160) 藏⻘青⾊色
$44 3(# )&9 /BNF 耼職俦珮傁珮繷≧孉䰛 耼職∮磕䥥聜∮䮝孉䰛 rgb(95, 158, 160) 藏⻘青⾊色
$44 3(# )&9 /BNF 耼職俦珮傁珮繷≧孉䰛 耼職∮磕䥥聜∮䮝孉䰛 rgb(95, 158, 160) #5f9ea0
藏⻘青⾊色
$44 3(# )&9 /BNF 耼職俦珮傁珮繷≧孉䰛 耼職∮磕䥥聜∮䮝孉䰛 rgb(95, 158, 160) #5f9ea0
䋰缧⥉㧪⋬櫱崎劊䥥欰啓⛮ 藏⻘青⾊色
$44 3(# )&9 /BNF 耼職俦珮傁珮繷≧孉䰛 耼職∮磕䥥聜∮䮝孉䰛 rgb(95, 158, 160) #5f9ea0
cadetblue 䋰缧⥉㧪⋬櫱崎劊䥥欰啓⛮ 藏⻘青⾊色
$44 藏⻘青⾊色
$44 3(#" 藏⻘青⾊色
$44 3(#" 藏⻘青⾊色 藏⻘青⾊色
$44 3(#" 㢑⭿耼㣯ㆇ rgb(95, 158, 160, 0.5) 藏⻘青⾊色 藏⻘青⾊色
$44 3(#" 㢑⭿耼㣯ㆇ rgb(95, 158, 160, 0.5) 藏⻘青⾊色 藏⻘青⾊色 "MQIB
$44 3(#" 㢑⭿耼㣯ㆇ rgb(95, 158, 160, 0.5) 藏⻘青⾊色 藏⻘青⾊色 "MQIB
.panel { color: rgb(95, 158, 160); opacity:0.5 } or
$44 欰啓⚤勤傓䶺 ō JVVRYYYHNCVWKEQNQTRKEMGTEQO ō JVVREQNQWTEQFG ō JVVRUEQNQTCFQDGEQO\JETGCVGEQNQTYJGGN
$44 &'/1 範例練習:http://bit.ly/116IT4O
$44 ⸸臶Ⰸ⻰ font-size: 大小;
$44 %55⢏∮㤐獑
$44
$44 QY
$44 QY QU
$44 QY QU FN
$44 QY QU FN
$44 QY QU FN QD
$44 QY QU FN QD JO
$44 QY QU FN QD JO FY
$44 QY QU FN QD JO FY DN
$44 QY QU FN QD JO FY DN NN
$44 QY QU FN QD JO FY DN NN
SFN
$44 嬭悾 line-height: 高度;
$44 嬭悾 line-height: 高度; line-height: 16px; line-height: 200%; line-height: 2em;
$44 䧮僽俒㶶 line height font size font-size: 14px; line-height: 16px;
1px 1px
$44 僕劳 範例練習:http://bit.ly/1oGGSGT
$44 ⻇∽㎦⭤ 情境範例:http://bit.ly/1xgjoLu
$44 ㉩⯻┼⑆桡䥥┮䷐テ 粕ㄌ㧤㊹峹䥥Ⅼ
$44 %555GNGEVQT U5RGEKHKEKV[ %55肞㞨⥉ⰸ䠉⚀┨
$44 "#$%
$44 "#$%
$44
$44 "
$44 " style屬性
$44 " style屬性 <h1 style=“color:red;”>Text</h1>
$44 " style屬性 <h1 style=“color:red;”>Text</h1> #
$44 " style屬性 <h1 style=“color:red;”>Text</h1> # ID 屬性
$44 " style屬性 <h1 style=“color:red;”>Text</h1> # ID 屬性 #header {
}
$44 " style屬性 <h1 style=“color:red;”>Text</h1> # ID 屬性 #header {
} $
$44 " style屬性 <h1 style=“color:red;”>Text</h1> # ID 屬性 #header {
} $ Class 屬性
$44 " style屬性 <h1 style=“color:red;”>Text</h1> # ID 屬性 #header {
} $ .title { } Class 屬性
$44 " style屬性 <h1 style=“color:red;”>Text</h1> # ID 屬性 #header {
} $ .title { } Class 屬性 .title:first-child
$44 " style屬性 <h1 style=“color:red;”>Text</h1> # ID 屬性 #header {
} $ .title { } Class 屬性 % .title:first-child
$44 " style屬性 <h1 style=“color:red;”>Text</h1> # ID 屬性 #header {
} $ .title { } Class 屬性 % Element Name .title:first-child
$44 " style屬性 <h1 style=“color:red;”>Text</h1> # ID 屬性 #header {
} $ .title { } Class 屬性 % h1 { } Element Name .title:first-child
$44
$44 8*/
$44
$44 8*/
$44 %55ⰸ䠉㾶┨峩乸祚 IUUQTQFDJDJUZLFFHBOTU
$44 痞㩽#$%&䧙粹 砒≧䥥垬㙪┮橃䥥
$44 痞㩽#$%&䧙粹 砒≧䥥垬㙪┮橃䥥
$44 ɓ֛ࠅৣ፯ኜࢁ͜ࡡۆ
$44 %55肰䠭 榷竅⨉肰䠭∧≁腩⃮桬
$44 CONTENT padding-top padding-bottom padding-left padding-right border-left border-right border-top border-bottom
margin-left margin-top margin-right margin-bottom width height
$44 CONTENT padding-top padding-bottom padding-left padding-right margin-left margin-top margin-right margin-bottom
width height
$44 ⯷肰䠭OCTIKP margin: 大小;
$44 ⑈悾RCFFKPI padding: 大小;
$44 margin: 10px;
$44 margin: 10px; 上右下左10px
$44 margin: 10px; 上右下左10px margin: 10px 5px;
$44 margin: 10px; 上右下左10px margin: 10px 5px; 上下10px 左右5px
$44 margin: 10px; 上右下左10px margin: 10px 5px 4px; margin: 10px
5px; 上下10px 左右5px
$44 margin: 10px; 上右下左10px margin: 10px 5px 4px; 上10px 左右5px
下4px margin: 10px 5px; 上下10px 左右5px
$44 margin: 10px; 上右下左10px margin: 10px 5px 4px; 上10px 左右5px
下4px margin: 10px 9px 8px 7px; margin: 10px 5px; 上下10px 左右5px
$44 margin: 10px; 上右下左10px margin: 10px 5px 4px; 上10px 左右5px
下4px margin: 10px 9px 8px 7px; 上10px 右9px 下8px 左7px margin: 10px 5px; 上下10px 左右5px
$44 margin: 10px; 上右下左10px margin: 10px 5px 4px; 上10px 左右5px
下4px margin: 10px 9px 8px 7px; 上10px 右9px 下8px 左7px margin: 10px 5px; 上下10px 左右5px
$44 margin: 10px; 上右下左10px margin: 10px 5px 4px; 上10px 左右5px
下4px margin: 10px 9px 8px 7px; 上10px 右9px 下8px 左7px margin: 10px 5px; 上下10px 左右5px
$44 margin: 10px; 上右下左10px margin: 10px 5px 4px; 上10px 左右5px
下4px margin: 10px 9px 8px 7px; 上10px 右9px 下8px 左7px 櫧磢曹 margin: 10px 5px; 上下10px 左右5px
$44 RCFFKPI
$44 RCFFKPI ⛭⃫
$44 㬧傻DQTFGT border: 粗細 顏色 樣式; 2px 0.75em red #12fa99
rgb(1,200,29) solid dashed double dotted 實線 虛線 雙線 點點線
$44 margin- padding- border- top right bottom left
$44 ▶㔬∽ 範例練習:http://bit.ly/1tJyIJh
$44 䁏▶(NQCV
$44 䁏▶ float: 樣式; right left none
$44 ▶㔬∽ 範例練習1:http://bit.ly/1u4dWYp 範例練習2:http://bit.ly/1u4d1Hz
$44 ⻇∽㎦⭤ 情境範例:http://bit.ly/1BdPCd8
$44
$44
$44 (NQCV$WI䥥缷㾶 解法一 新增這行
$44 (NQCV$WI䥥缷㾶 解法二
$44 (NQCV$WI䥥缷㾶 解法三 新增這行
$44 ⍞欿肞㞨⥉ ⍞倁肞㞨⥉
$44 ⍞欿肞㞨⥉2UGWFQENCUUGU BDUJWF 滑鼠點擊時 GPDVT 元素成為焦點時 IPWFS 滑鼠置於元素上方時 MJOL 未訪問過的連結
WJTJUFE 已訪問過的連結 pSTUDIJME 第一個元素 MBOH 當屬性 lang 為某值
$44 ⍞倁肞㞨⥉2UGWFQGNGOGPVU pSTUMFUUFS 元素內第一個字元 pSTUMJOF 元素內第一行 CFGPSF 元素前內容 BGUFS 元素後的內容
聆ㄙ㧤㜎搮EQPVGPV⽍㌈
$44 ▶㔬∽ 範例檔1:http://bit.ly/1u4dWYp 範例檔2:http://bit.ly/1u4ixdc
$44 歐䰛⽍㌈FKURNC[
$44 歐䰛⽍㌈ display: 狀態; block inline inline-block none ….
$44 display: block; 規定元素以區塊方式呈現
$44 display: inline; 規定元素以單行方式呈現,不能設定「width」、 「height」 、 「background-image」 display: block; 規定元素以區塊方式呈現
$44 display: inline; 規定元素以單行方式呈現,不能設定「width」、 「height」 、 「background-image」 display: block; 規定元素以區塊方式呈現
display: inline-block; 規定元素以單行方式呈現,可以設定「width」、 「height」 、 「background-image」
$44 display: inline; 規定元素以單行方式呈現,不能設定「width」、 「height」 、 「background-image」 display: block; 規定元素以區塊方式呈現
display: inline-block; 規定元素以單行方式呈現,可以設定「width」、 「height」 、 「background-image」 display: none; 不顯示
$44 ▶㔬∽ 範例練習:http://bit.ly/1tKIKtB
$44 %55崜缷 ⃬崜缷㤐䎛Ⅷ恑㧕桘䥥惐
$44 單行 // 多行 /* */ 聅嬭
$44 ⻇∽㎦⭤ 情境範例:http://bit.ly/1tKOUKl
$44 ∮RQUKVKQP 倶⻮⃮㤐)25∮
$44 ∮RQUKVKQP position: 狀態; static absolute relative fixed
$44 position: static; 預設值,不受 top、bottom、left 和 right 屬性值影響
$44 position: absolute; 絕對位置,以父元素為定位 position: static; 預設值,不受 top、bottom、left 和 right
屬性值影響
$44 position: absolute; 絕對位置,以父元素為定位 position: static; 預設值,不受 top、bottom、left 和 right
屬性值影響 position: relative; 相對位置,以本身元素為定位
$44 position: absolute; 絕對位置,以父元素為定位 position: static; 預設值,不受 top、bottom、left 和 right
屬性值影響 position: relative; 相對位置,以本身元素為定位 position: fixed; 以瀏覽器畫面為定位
$44 position: static; 預設值,不受 top、bottom、left 和 right 屬性值影響
$44 position: absolute; 絕對位置,以父元素為定位
$44 FKXKVGO 䔗倁䎛DQF[ position: absolute; 絕對位置,以父元素為定位
$44 FKXKVGO 䔗倁䎛DQF[ position: absolute; 絕對位置,以父元素為定位 MFGUQY UPQQY
$44 position: relative; 相對位置,以本身元素為定位
$44 position: relative; 相對位置,以本身元素為定位 MFGUQY UPQQY
$44
$44 position: fixed; 以瀏覽器畫面為定位
$44 MFGUQY UPQQY position: fixed; 以瀏覽器畫面為定位
$44 &'/1 範例練習:http://bit.ly/1GSgS18
$44 ⻇∽㎦⭤ 情境範例:http://bit.ly/1GSlfJr
$44 %55*CEM 肪㤐缙橃⻮
$44
$44
$44
$44
$44 ⓨ䔩
$44 㧟側㓲⇆䎛䠉 ! 䡌ℬ砒⛐⇆哋▶䠀ⓛ傓䶺
$44 㧟側㓲⇆䎛䠉 ! 䡌ℬ砒⛐⇆哋▶䠀ⓛ傓䶺 ⌻痋✈
$44 ⓨ䔩㕡ト 䠒Ⰸ┑⻰苌㉿⃫┑⃬
$44 ⓨ䔩㕡ト ⌻峹纝 畏䠉'OOGV苌㋌⚩㧪㠩
$44 ⓨ䔩㕡ト 屰䡌%55䥥≠䠉 Ⅷ缷⟋ⅼ揉⇞缙≠䠉KOCIG㓷㤐EUU崎
$44 ⓨ䔩㕡ト 嵿㏰甙倁 ⻮㢝5'1㉩㧪ㅌ▊
$44 ⓨ䔩㕡ト 畏䠉テ
$44
$44
$44
$44 VGORNCVGU http://sneakpeekit.com/
$44 &'/1
$44 49& 4GURQPUKXG9GD&GUKIP
$44 ⧛䔩橃 禵▶䔩橃
$44
$44
$44
$44 ⃮㤐㺰⋬傓䶺揞肏⛩
$44 .FEJB2VFSZ
$44 .FEJB2VFSZ
$44
$44
$44
$44 49&テ • 12 種 RWD 工具 http://bit.ly/1tPTJSK • 檢視不同瀏覽器狀態
http://bit.ly/1v8EifF • SUSY http://susy.oddbird.net/
$44 ∽礱
$44 ∽礱 ō 亥≬傓䶺獌JVVRDKVN[S*ZDL ō ⃪↛⃡倥 ō 䡌ⓛYKTGHTCOGU ō ⌻ⓛRTQVQV[RGU䥥*6/.㵵礌
ō ⬒✫㲬㏔苌寞∽禵粕 ⓧ曹