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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
darrenyaoyaoyao
October 26, 2020
Programming
0
58
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
October 26, 2020
Tweet
Share
More Decks by darrenyaoyaoyao
See All by darrenyaoyaoyao
HTML__CSS_基礎二.pdf
darrenyaoyaoyao
0
58
Pug.pdf
darrenyaoyaoyao
0
70
Sass.pdf
darrenyaoyaoyao
0
56
jquery.pdf
darrenyaoyaoyao
1
70
0c8adb02-ade8-47bb-9939-4d45110ffefd.pdf
darrenyaoyaoyao
0
57
bootstrap.pdf
darrenyaoyaoyao
1
78
Javasrcipt_基礎一.pdf
darrenyaoyaoyao
0
91
Javascript_基礎二.pdf
darrenyaoyaoyao
0
130
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
36
Other Decks in Programming
See All in Programming
あなたはユーザーではない #PdENight
kajitack
4
270
Agent Skills Workshop - AIへの頼み方を仕組み化する
gotalab555
12
6.6k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
290
文字コードの話
qnighy
40
15k
今から始めるClaude Code超入門
448jp
8
9.5k
朝日新聞のデジタル版を支えるGoバックエンド ー価値ある情報をいち早く確実にお届けするために
junkiishida
1
250
AI & Enginnering
codelynx
0
140
Railsの気持ちを考えながらコントローラとビューを整頓する/tidying-rails-controllers-and-views-as-rails-think
moro
4
340
要求定義・仕様記述・設計・検証の手引き - 理論から学ぶ明確で統一された成果物定義
orgachem
PRO
1
390
今更考える「単一責任原則」 / Thinking about the Single Responsibility Principle
tooppoo
2
910
Head of Engineeringが現場で回した生産性向上施策 2025→2026
gessy0129
PRO
0
190
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
200
Featured
See All Featured
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
170
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
72k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
74
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
620
It's Worth the Effort
3n
188
29k
Utilizing Notion as your number one productivity tool
mfonobong
3
230
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
WENDY [Excerpt]
tessaabrams
9
36k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
420
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
94
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
67
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 陰影的語法
練習六 讓搜尋匡在點選時 不要有藍邊
練習七 讓搜尋匡在點選時 左邊留⽩
回家作業 讓 搜尋匡 左邊有 搜尋的圖⽰ 右邊有 麥克風的圖⽰