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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
Agentic AI with the Power of Jakarta EE
ivargrimstad
0
180
Skills Are the New npm [AAIF Bengaluru]
shivamsaraswat
0
120
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
17
9.5k
Distance field of Julia set
kinakomoti321
0
330
読みやすい!と評判(?)の発表の準備にかける私のこだわり
shoheimitani
0
160
まずはコードより業務と向き合う:テーブル解体のためにPdMを呼んだ話
sakawe_ee
0
270
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
120
仕様駆動開発入門 (何を作るかを先に決めて渡す) | 目指せ Kiro マスター 05
inariku
PRO
3
220
Claude Code ハーネスDeep Dive – 君はどこまで制御する? -
takateeen_knj
6
6.3k
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
390
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
360
特急いなほ as a Workflow / 20261107jaws-festa-2026-akita-lt
kasacchiful
PRO
0
110
Featured
See All Featured
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
320
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
880
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
670
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
380
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
570
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.7k
Believing is Seeing
oripsolob
1
290
Accessibility Awareness
sabderemane
1
310
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
61k
How to make the Groovebox
asonas
2
2.6k
It's Worth the Effort
3n
188
29k
エンジニアに許された特別な時間の終わり
watany
109
250k