<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CSS &#8211; 任姓人妻 の 生活紀錄</title>
	<atom:link href="https://blog.cindygirl.cc/archives/category/learn/css/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.cindygirl.cc</link>
	<description>我是冠冠，於2015年1月1日正式成為人妻，在此紀錄婚後的點點滴滴。</description>
	<lastBuildDate>Wed, 01 Jun 2016 08:36:15 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>【CSS】flexbox</title>
		<link>https://blog.cindygirl.cc/archives/2641/%e3%80%90css%e3%80%91flexbox/</link>
					<comments>https://blog.cindygirl.cc/archives/2641/%e3%80%90css%e3%80%91flexbox/#respond</comments>
		
		<dc:creator><![CDATA[cindygirl]]></dc:creator>
		<pubDate>Mon, 23 May 2016 06:30:50 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[學習筆記]]></category>
		<guid isPermaLink="false">https://blog.cindygirl.cc/?p=2641</guid>

					<description><![CDATA[<p>flexbox 光看文字說明有時候很難理解，透過遊&#8230;</p>
<p>這篇文章 <a rel="nofollow" href="https://blog.cindygirl.cc/archives/2641/%e3%80%90css%e3%80%91flexbox/">【CSS】flexbox</a> 最早出現於 <a rel="nofollow" href="https://blog.cindygirl.cc">任姓人妻 の 生活紀錄</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>
	flexbox 光看文字說明有時候很難理解，透過遊戲實作方式就比較容易理解。
</p>
<p>
	推薦這一個學習網站&nbsp;<a href="http://flexboxfroggy.com/">http://flexboxfroggy.com/</a>
</p>
<p>
	透過把青蛙歸位的遊戲學習 flexbox。
</p>
<p>
	這個連結我收藏很久，今天終於有時間來玩玩，順便筆記一下。
</p>
<p>
	玩過遊戲後，再去讀取相關文件更容易懂了！
</p>
<p>
	延伸閱讀 ：
</p>
<p>
	<a href="http://www.oxxostudio.tw/articles/201501/css-flexbox.html" target="_blank">深入解析 CSS Flexbox</a>
</p>
<p>
	<a href="http://rhadow.github.io/2015/02/26/learnFlexbox/" target="_blank">學習 Flexbox 版面配置</a>
</p>
<p>
	<span style="font-size:18px;">justify-content &nbsp;水平對齊</span>
</p>
<ul>
<li>
		<code>flex-start</code>: 元素和容器的左端對齊。
	</li>
<li>
		​<code>flex-end</code>: 元素和容器的右端對齊。
	</li>
<li>
		<code>center</code>: 元素和容器裏居中。
	</li>
<li>
		<code>space-between</code>: 元素之間保持相等的距離。
	</li>
<li>
		<code>space-around</code>: 元素周圍保持相等的距離。
	</li>
</ul>
<p>
	<span style="font-size:20px;">align-items &nbsp;垂直對齊</span>
</p>
<ul>
<li>
		<code>flex-start</code>: 元素與容器的頂部對齊。
	</li>
<li>
		<code>flex-end</code>: 元素與容器的底部對齊。
	</li>
<li>
		<code>center</code>: 元素縱向居中。
	</li>
<li>
		<code>baseline</code>: 元素在容器的基線位置表現。
	</li>
<li>
		<code>stretch</code>: 元素被拉伸以填滿整個容器。
	</li>
</ul>
<p>
	<span style="font-size:20px;">flex-direction &nbsp;擺放方向</span>
</p>
<ul>
<li>
		<code>row</code>: 元素擺放的方向和文字方向一致。&nbsp;（由左到右）
	</li>
<li>
		<code>row-reverse</code>: 元素擺放的方向和文字的方向相反&nbsp; &nbsp;（由右到左）
	</li>
<li>
		<code>column</code>: 元素從上放到下。
	</li>
<li>
		<code>column-reverse</code>: 元素從下放到上。
	</li>
</ul>
<blockquote>
<ul>
<li>
			<span style="color:#0000FF;">當你變更水平/垂直方向時，flex-start 和 flex-end 方向也會相反。&nbsp;</span>
		</li>
<li>
			<span style="color:#0000FF;">當 &nbsp;flex-direction: column 或&nbsp;flex-direction: column-reverse&nbsp; (垂直方向) 時，justify-content 控制垂直方向，align-items 控制水平方向。</span>
		</li>
</ul>
</blockquote>
<p>
	<br />
	<span style="font-size:20px;"><font face="PT Sans, sans-serif">order &nbsp;排列順序</font></span>
</p>
<p>
	&nbsp; &nbsp;預設值為 0， 可以輸入負數或正數
</p>
<p>
	&nbsp;
</p>
<p>
	<span style="font-size:20px;">align-self &nbsp;&nbsp;控制單個元素</span>
</p>
<p>
	用法跟&nbsp;<code><font face="Source Code Pro, monospace">align-item 一樣</font></code>
</p>
<p>
	&nbsp;
</p>
<p>
	<span style="font-size:20px;">flex-wrap 分離元素</span>
</p>
<ul>
<li>
		<code>nowrap</code>: 所有的元素都在一行。
	</li>
<li>
		<code>wrap</code>: 元素自動換成多行。
	</li>
<li>
		<code>wrap-reverse</code>: 元素自動換成逆向的多行
	</li>
</ul>
<p>
	&nbsp;
</p>
<p>
	<span style="font-size:20px;">flex-flow &nbsp;</span>
</p>
<p>
	等同於 flex-direction 跟 flex-wrap 的縮寫。
</p>
<p>
	flex-direction 跟 flex-wrap 常常被一同使用，所以延伸出 flex-flow。
</p>
<p>
	flex-flow: row wrap; &nbsp; &nbsp;//中間用空白隔開
</p>
<p>
	&nbsp;
</p>
<p>
	<span style="font-size:20px;">align-content &nbsp;&nbsp;決定行與行的間隔</span>
</p>
<p>
	只有一行的時候 &nbsp;是沒有作用的
</p>
<ul>
<li>
		<code>flex-start</code>: 多行都集中在頂部。
	</li>
<li>
		<code>space-between</code>: 行與行之間保持相等距離。
	</li>
<li>
		<code>space-around</code>: 每行的周圍保持相等距離。
	</li>
<li>
		<code>stretch</code>: 每一行都被拉伸以填滿容器。
	</li>
</ul>
<p>這篇文章 <a rel="nofollow" href="https://blog.cindygirl.cc/archives/2641/%e3%80%90css%e3%80%91flexbox/">【CSS】flexbox</a> 最早出現於 <a rel="nofollow" href="https://blog.cindygirl.cc">任姓人妻 の 生活紀錄</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.cindygirl.cc/archives/2641/%e3%80%90css%e3%80%91flexbox/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
