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
62
Pug.pdf
darrenyaoyaoyao
0
79
Sass.pdf
darrenyaoyaoyao
0
62
jquery.pdf
darrenyaoyaoyao
1
83
0c8adb02-ade8-47bb-9939-4d45110ffefd.pdf
darrenyaoyaoyao
0
62
bootstrap.pdf
darrenyaoyaoyao
1
83
Javasrcipt_基礎一.pdf
darrenyaoyaoyao
0
96
Javascript_基礎二.pdf
darrenyaoyaoyao
0
130
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
65
Other Decks in Programming
See All in Programming
GoogleCloudとterraform完全に理解した
terisuke
1
160
Kingdom of the Machine
yui_knk
2
1.1k
NakouPAY説明用
annouim0
0
270
Claude CodeでETLジョブ実行テストを自動化してみた
yoshikikasama
0
990
「Linuxサーバー構築標準教科書」を読んでみた #ツナギメオフライン.7
akase244
0
1.4k
t *testing.T は どこからやってくるの?
otakakot
1
800
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
200
【26新卒研修資料】TDD実装演習
dip_tech
PRO
0
110
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
390
AI時代のエンジニアリングの原則 / Engineering Principles in the AI Era
haru860
0
820
AIを導入する前にやるべきこと
negima
2
300
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
290
Featured
See All Featured
Darren the Foodie - Storyboard
khoart
PRO
3
3.3k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Building Adaptive Systems
keathley
44
3k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
380
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
260
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
330
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Mind Mapping
helmedeiros
PRO
1
170
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
410
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
270
SEO for Brand Visibility & Recognition
aleyda
0
4.5k
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