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__CSS_基礎_.pdf
Search
darrenyaoyaoyao
October 26, 2020
Programming
0
46
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
October 26, 2020
Tweet
Share
More Decks by darrenyaoyaoyao
See All by darrenyaoyaoyao
HTML__CSS_基礎二.pdf
darrenyaoyaoyao
0
46
Pug.pdf
darrenyaoyaoyao
0
52
Sass.pdf
darrenyaoyaoyao
0
47
jquery.pdf
darrenyaoyaoyao
1
52
0c8adb02-ade8-47bb-9939-4d45110ffefd.pdf
darrenyaoyaoyao
0
42
bootstrap.pdf
darrenyaoyaoyao
1
64
Javasrcipt_基礎一.pdf
darrenyaoyaoyao
0
78
Javascript_基礎二.pdf
darrenyaoyaoyao
0
110
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
26
Other Decks in Programming
See All in Programming
Security_for_introducing_eBPF
kentatada
0
110
StarlingMonkeyを触ってみた話 - 2024冬
syumai
3
270
Cloudflare MCP ServerでClaude Desktop からWeb APIを構築
kutakutat
1
550
MCP with Cloudflare Workers
yusukebe
2
220
見えないメモリを観測する: PHP 8.4 `pg_result_memory_size()` とSQL結果のメモリ管理
kentaroutakeda
0
380
LLM Supervised Fine-tuningの理論と実践
datanalyticslabo
7
1.3k
Beyond ORM
77web
7
910
PHPで学ぶプログラミングの教訓 / Lessons in Programming Learned through PHP
nrslib
3
290
Haze - Real time background blurring
chrisbanes
1
510
PSR-15 はあなたのための ものではない? - phpcon2024
myamagishi
0
140
ドメインイベント増えすぎ問題
h0r15h0
2
350
17年周年のWebアプリケーションにTanStack Queryを導入する / Implementing TanStack Query in a 17th Anniversary Web Application
saitolume
0
250
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.5k
How to Ace a Technical Interview
jacobian
276
23k
Music & Morning Musume
bryan
46
6.2k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
2
170
Designing on Purpose - Digital PM Summit 2013
jponch
116
7k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
Into the Great Unknown - MozCon
thekraken
33
1.5k
Done Done
chrislema
181
16k
Mobile First: as difficult as doing things right
swwweet
222
9k
The Cost Of JavaScript in 2023
addyosmani
45
7k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Transcript
HTML, CSS 基礎⼀ 網站入⾨
HTML, CSS 是網⾴的程式語⾔ Codepen 網站 ⽅便新⼿快速練習
今⽇⽬標
HTML HTML 是⼀套以 <> </> 構成的排版語法
標題 <h1> Google </h1>
⽂字 <p> Google 提供:English </p>
按鈕 <button> Google 搜尋</button>
區塊 <div> <button> Google 搜尋</button> </div>
⽂字輸入 <input/>
CSS CSS 是⼀套以 控制網⾴樣式、美化的語⾔
Border border: 1px solid black
Style 直接將 CSS 寫在 HTML 裡
Color ⽂字顏⾊ color: #757575
Class 將 CSS 模組化 .button { color: #757575; border: 1px
solid black }
Padding 留⽩ padding: 12px
Margin 邊界 margin: 8px
border-radius 圓⾓ border-radius: 8px
Id 專屬的 class #textInput { height:24px; width:300px; }
練習⼀ 更改搜尋匡的邊匡顏⾊與圓⾓ 並與按鈕保持距離
font-size 調整⽂字⼤⼩ font-size: 14px
Html img : 使⽤圖片 <img src=“https://www.google.com/images/ branding/googlelogo/2x/ googlelogo_color_272x92dp.png”/>
中場休息
Position 決定元素的位置 static | absolute | fixed | relative |
sticky | initial | inherit 使⽤ absolute 來試試置中
text-align 選擇⼦元素左對⿑、右對⿑或中間對⿑
display block 會把左右撐滿 inline 會把上下撐滿
float 決定往哪邊對⿑
background-color 背景顏⾊ background-color : #e0e0e0
練習⼆ 複製 Google ⾸⾴的 footer
<a /> 超連結 超連結,讓使⽤者連到別的⾴⾯
練習三 讓 header, footer 的字 都變成超連結
hover 當滑鼠移到元素上⾯時 .class:hover { }
練習四 讓 header, footer 的超連結 在 hover 時都能有底線
練習五 讓搜尋匡在 hover 時有陰影 ⼩提⽰:需要⾃⼰ Google 陰影的語法
練習六 讓搜尋匡在點選時 不要有藍邊
練習七 讓搜尋匡在點選時 左邊留⽩
回家作業 讓 搜尋匡 左邊有 搜尋的圖⽰ 右邊有 麥克風的圖⽰