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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
darrenyaoyaoyao
October 26, 2020
Programming
56
0
Share
CSS_Flex_基礎_.pdf
darrenyaoyaoyao
October 26, 2020
More Decks by darrenyaoyaoyao
See All by darrenyaoyaoyao
HTML__CSS_基礎二.pdf
darrenyaoyaoyao
0
65
Pug.pdf
darrenyaoyaoyao
0
84
Sass.pdf
darrenyaoyaoyao
0
69
jquery.pdf
darrenyaoyaoyao
1
92
0c8adb02-ade8-47bb-9939-4d45110ffefd.pdf
darrenyaoyaoyao
0
66
bootstrap.pdf
darrenyaoyaoyao
1
85
Javasrcipt_基礎一.pdf
darrenyaoyaoyao
0
97
Javascript_基礎二.pdf
darrenyaoyaoyao
0
130
HTML__CSS_基礎_.pdf
darrenyaoyaoyao
0
67
Other Decks in Programming
See All in Programming
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
280
開発体験を左右するライブラリの API 設計 - GraphQL スキーマ構築ライブラリから考える #tskaigi
izumin5210
2
380
タクシーアプリ『GO』の バックエンド開発のおける AI利活用と若者のすべて
pyama86
1
550
AIエージェントの隔離技術の徹底比較
kawayu
0
390
Hive Metastoreを通して学ぶIceberg REST Catalog ― 仕様から実装まで
okumin
0
250
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
300
Cloudflare で始める Data Platform
ta93abe
0
210
AlarmKitで明後日起きれるアラームアプリを作る
trickart
0
140
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
3
440
AIエージェントと協働するCLI開発 — BunとOpenClawで学んだこと
yoshikouki
1
160
自動レビューエンジンの実装と運用 ~レビューのない世界へ~
kurukuru1999
1
180
oxlintはeslint/typescript-eslintを置き換えられるのか
shomafujita
2
140
Featured
See All Featured
Designing Powerful Visuals for Engaging Learning
tmiket
1
370
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
810
sira's awesome portfolio website redesign presentation
elsirapls
0
250
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
340
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
Statistics for Hackers
jakevdp
799
230k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.5k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
930
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
70
39k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
The browser strikes back
jonoalderson
0
1.1k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
460
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