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
darrenyaoyao
October 24, 2020
Programming
0
21
CSS_Flex_基礎_.pdf
darrenyaoyao
October 24, 2020
Tweet
Share
More Decks by darrenyaoyao
See All by darrenyaoyao
HTML__CSS_基礎_.pdf
darrenyaoyao
0
21
HTML__CSS_基礎_.pdf
darrenyaoyao
0
24
HTML__CSS基礎二.pdf
darrenyaoyao
0
16
Javascript進階.pdf
darrenyaoyao
0
15
Javasrcipt_基礎一.pdf
darrenyaoyao
0
19
Bootstrap.pdf
darrenyaoyao
0
24
Sass_基礎篇.pdf
darrenyaoyao
0
25
Github_介紹.pdf
darrenyaoyao
0
110
Javascript_基礎二.pdf
darrenyaoyao
0
18
Other Decks in Programming
See All in Programming
Fluid Templating in TYPO3 14
s2b
0
130
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6.1k
CSC307 Lecture 04
javiergs
PRO
0
660
CSC307 Lecture 05
javiergs
PRO
0
500
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
280
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
330
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
220
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
1
2.6k
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
230
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
270
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
180
Featured
See All Featured
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
650
Test your architecture with Archunit
thirion
1
2.2k
Accessibility Awareness
sabderemane
0
59
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
For a Future-Friendly Web
brad_frost
182
10k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
130
Facilitating Awesome Meetings
lara
57
6.8k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
Unsuck your backbone
ammeep
671
58k
Typedesign – Prime Four
hannesfritz
42
3k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
300
The SEO Collaboration Effect
kristinabergwall1
0
360
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