Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
CSS_Flex_基礎_.pdf
Search
darrenyaoyaoyao
October 26, 2020
Programming
74
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CSS_Flex_基礎_.pdf
darrenyaoyaoyao
October 26, 2020
Transcript
20 slides
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
More Decks by darrenyaoyaoyao
See All by darrenyaoyaoyao
HTML__CSS_基礎二.pdf
darrenyaoyaoyao
0
81
Pug.pdf
darrenyaoyaoyao
0
100
Sass.pdf
darrenyaoyaoyao
0
84
jquery.pdf
darrenyaoyaoyao
1
120
0c8adb02-ade8-47bb-9939-4d45110ffefd.pdf
darrenyaoyaoyao
0
84
bootstrap.pdf
darrenyaoyaoyao
1
99
Javasrcipt_基礎一.pdf
darrenyaoyaoyao
0
110
Javascript_基礎二.pdf
darrenyaoyaoyao
0
160
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
81
Other Decks in Programming
See All in Programming
コード生成時代のAPI定義を支えるRequest Spec移行
pvcresin
0
300
AppFunctionsの内部実装を紐解く
hiroaki404
0
120
Spec-driven Development with AI
simas
PRO
0
2.3k
クラウドエージェントは、 何がそんなに便利なのか / what makes cloud agents so useful
rkaga
5
980
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
420
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
400
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
330
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
230
AIエージェントの「テストは通るのに本番で壊れる」を減らす
shibuiwilliam
3
110
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
170
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
120
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
17
9.5k
Featured
See All Featured
Navigating Weather and Climate Data
rabernat
0
600
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.8k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
Embracing the Ebb and Flow
colly
88
5.2k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
61k
Raft: Consensus for Rubyists
vanstee
143
7.9k
The SEO Collaboration Effect
kristinabergwall1
1
630
RailsConf 2023
tenderlove
30
1.6k
New Earth Scene 8
popppiees
5
2.9k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
2
4k
The Invisible Side of Design
smashingmag
301
52k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k