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
CSS_Flex_基礎_.pdf
Search
darrenyaoyaoyao
October 26, 2020
Programming
52
0
Share
CSS_Flex_基礎_.pdf
darrenyaoyaoyao
October 26, 2020
More Decks by darrenyaoyaoyao
See All by darrenyaoyaoyao
HTML__CSS_基礎二.pdf
darrenyaoyaoyao
0
60
Pug.pdf
darrenyaoyaoyao
0
75
Sass.pdf
darrenyaoyaoyao
0
58
jquery.pdf
darrenyaoyaoyao
1
79
0c8adb02-ade8-47bb-9939-4d45110ffefd.pdf
darrenyaoyaoyao
0
61
bootstrap.pdf
darrenyaoyaoyao
1
81
Javasrcipt_基礎一.pdf
darrenyaoyaoyao
0
95
Javascript_基礎二.pdf
darrenyaoyaoyao
0
130
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
60
Other Decks in Programming
See All in Programming
アーキテクチャモダナイゼーションとは何か
nwiizo
17
4.6k
車輪の再発明をしよう!PHP で実装して学ぶ、Web サーバーの仕組みと HTTP の正体
h1r0
3
510
iOS機能開発のAI環境と起きた変化
ryunakayama
0
170
Go_College_最終発表資料__外部公開用_.pdf
xe_pc23
0
140
今からFlash開発できるわけないじゃん、ムリムリ! (※ムリじゃなかった!?)
arkw
0
190
LM Linkで(非力な!)ノートPCでローカルLLM
seosoft
0
420
ネイティブアプリとWebフロントエンドのAPI通信ラッパーにおける共通化の勘所
suguruooki
0
250
生成 AI 時代のスナップショットテストってやつを見せてあげますよ(α版)
ojun9
0
340
Running Swift without an OS
kishikawakatsumi
0
690
Swift Concurrency Type System
inamiy
0
390
Java 21/25 Virtual Threads 소개
debop
0
340
Xdebug と IDE による デバッグ実行の仕組みを見る / Exploring-How-Debugging-Works-with-Xdebug-and-an-IDE
shin1x1
0
350
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
2k
sira's awesome portfolio website redesign presentation
elsirapls
0
210
New Earth Scene 8
popppiees
3
2k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
510
Skip the Path - Find Your Career Trail
mkilby
1
100
How to make the Groovebox
asonas
2
2.1k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.6k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
The Spectacular Lies of Maps
axbom
PRO
1
680
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
520
Fireside Chat
paigeccino
42
3.9k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Transcript
CSS Flex 盒⼦模型 基礎⼀ 排版進階練習
在 slidepin.cc 儲存這份投影片
今⽇⽬標 https://darrenyaoyao.github.io/
https://darrenyaoyao.github.io/
Flex Flex 是⼀套排版系統 display: flex
Flex-direction column row
Flex 比例 flex: 1 flex: 3
Flex 比例 flex: 1 flex: 3
align-items
position: fixed 固定位置
Overscroll 超出範圍,滑動屬性
Icon Icon 使⽤ <link rel="stylesheet" href=“https:// fonts.googleapis.com/icon? family=Material+Icons">
justify-content
練習⼀ 將左邊的 Youtube menu 還原
flex-wrap
flex flex 其實是 flex: flex-grow flex-shrink flex-basis
flex-grow 元件的伸展性,是⼀個數值,當空間分配還有剩餘時的 當前元件的伸展性,預設值為,如果設置為 0 則不會 縮放。
flex-shrink 元件的收縮性: 元件的伸展性,是⼀個數值,當空間分 配還不⾜時的當前元件的收縮性,預設值為 0 ,如果設 置為 0 則不會縮放。
flex-basis 元件的基準值,可使⽤不同的單位值。
flex flex : 1 其實是指 flex-grow : 1