<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anthony Tsai on Medium]]></title>
        <description><![CDATA[Stories by Anthony Tsai on Medium]]></description>
        <link>https://medium.com/@anthonytsai81?source=rss-b2327c84f885------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4jntDsMi-3H06EA2t1sVLg.png</url>
            <title>Stories by Anthony Tsai on Medium</title>
            <link>https://medium.com/@anthonytsai81?source=rss-b2327c84f885------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:11:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anthonytsai81/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[CSS筆記-image & background-image的擺放方式]]></title>
            <link>https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/css%E7%AD%86%E8%A8%98-image-background-image%E7%9A%84%E6%93%BA%E6%94%BE%E6%96%B9%E5%BC%8F-750e499e3603?source=rss-b2327c84f885------2</link>
            <guid isPermaLink="false">https://medium.com/p/750e499e3603</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[image]]></category>
            <category><![CDATA[background-image]]></category>
            <dc:creator><![CDATA[Anthony Tsai]]></dc:creator>
            <pubDate>Sun, 16 May 2021 11:38:13 GMT</pubDate>
            <atom:updated>2021-05-16T11:38:13.689Z</atom:updated>
            <content:encoded><![CDATA[<h3>擺放圖片的重要性</h3><p>好的擺放方式能把你的圖片完整的呈現出來，壞的擺放方式能把你的圖片毀掉。所以選擇哪一種擺放是非常重要的！</p><h3>擺放圖片</h3><p>如果你要擺放的是 img 或者是 video 那 object-fit是一個很方便的選擇</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m7bxO3QIkJftOQrmuP2oyQ.png" /></figure><ul><li>object-fit: none; 圖片以原尺寸置中</li><li>object-fit: contain; 圖片以原尺寸縮放至外框大小，保留完整的圖片且兩側留白</li><li>object-fit: cover; 圖片以原尺寸縮放至外框大小，會切掉多餘的部分</li><li>object-fit:fill; 將圖片強制填滿置外框大小，圖片比例會變形</li><li>object-fit:scale-down; 如果圖片的原始尺寸比外框小就會呈現object-fit:none 如果比外框大就會呈現object-fit:contain</li></ul><p>我們用 object-fit: cover; 作為範例，首先我們要先在圖片外面建立一個外框，並且指定外框的大小，再把object-fit放進img標籤，並且將高度跟長度都設為100%就能達到想要的效果了！</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bed746ce0ef3662f1930a1679d87b5ce/href">https://medium.com/media/bed746ce0ef3662f1930a1679d87b5ce/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d89a430aca0e1c7b3994f7383958a6fe/href">https://medium.com/media/d89a430aca0e1c7b3994f7383958a6fe/href</a></iframe><p>效果參考</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fembed%2Fpreview%2FeYvmQPr%3Fdefault-tabs%3Dhtml%252Cresult%26height%3D600%26host%3Dhttps%253A%252F%252Fcodepen.io%26slug-hash%3DeYvmQPr&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fpen%2FeYvmQPr&amp;image=https%3A%2F%2Fassets.codepen.io%2F4466248%2Finternal%2Fscreenshots%2Fpens%2FeYvmQPr.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1620704479%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/02d9e1ed3dd08373889f626d08f8aa38/href">https://medium.com/media/02d9e1ed3dd08373889f626d08f8aa38/href</a></iframe><h3>擺放背景圖片</h3><p>如果你要擺放的是background-image 那使用background-size會比較適合</p><ul><li>background-size: unset; 圖片以原尺寸擺放，靠左上方對齊</li><li>background-size: contain; 圖片以原尺寸縮放至外框大小，靠左方對齊，右方留白</li><li>background-size: cover; 圖片以原尺寸縮放至外框大小，會切掉多餘的部分，缺點是如果容器的長寬比例與背景圖片的長寬比例相差太多，會出現背景圖片失真的情況。</li><li>background-repeat: no-repeat; 圖片以原尺寸不重複排列</li><li>background-position: center; 將圖片置中</li><li>background-position:right bottom; 靠右靠下對齊</li><li>background-image:url(https://medium.com/&#39;%E8%A6%81%E9%A1%AF%E7%A4%BA%E7%9A%84%E5%9C%96%E7%89%87%E7%B6%B2%E5%9D%80&#39;); 放置背景圖片</li></ul><p>我們用 background-size: contain; 作為範例，首先我們要先為背景圖設一個標籤，再把background-image放進標籤的CSS裡面，並且將我們想要的效果 background-size: contain;放進去就可以了！</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e495cf392716a54784e2427c74e00f5a/href">https://medium.com/media/e495cf392716a54784e2427c74e00f5a/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/79b092f8e8f4c686f2a29e97c58a3c11/href">https://medium.com/media/79b092f8e8f4c686f2a29e97c58a3c11/href</a></iframe><p>效果參考</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fembed%2Fpreview%2FXWMmMvw%3Fdefault-tabs%3Dhtml%252Cresult%26height%3D600%26host%3Dhttps%253A%252F%252Fcodepen.io%26slug-hash%3DXWMmMvw&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fpen%2FXWMmMvw&amp;image=https%3A%2F%2Fassets.codepen.io%2F4466248%2Finternal%2Fscreenshots%2Fpens%2FXWMmMvw.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1620713219%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/8860b4f15e1d037bf87ab85c08fbbc39/href">https://medium.com/media/8860b4f15e1d037bf87ab85c08fbbc39/href</a></iframe><h3>圖片等比例</h3><p>因應RWD裝置的需求漸增，我們要盡量減少設定固定的圖片寬度跟高度。現在有一個新的CSS叫 aspect-ratio可以輕鬆的指定圖片的長寬比例，但是使用者的瀏覽器要更新到最新版本才會運作，而且safari目前還不支援。</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/aspect-ratio">aspect-ratio - CSS | MDN</a></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9d31cf8742026b4337ccb61637d14dbf/href">https://medium.com/media/9d31cf8742026b4337ccb61637d14dbf/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/34f418eeab873492ef980ba47ede9229/href">https://medium.com/media/34f418eeab873492ef980ba47ede9229/href</a></iframe><p>效果參考</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fembed%2Fpreview%2FMWpaoGp%3Fdefault-tabs%3Dhtml%252Cresult%26height%3D600%26host%3Dhttps%253A%252F%252Fcodepen.io%26slug-hash%3DMWpaoGp&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fpen%2FMWpaoGp&amp;image=https%3A%2F%2Fassets.codepen.io%2F4466248%2Finternal%2Fscreenshots%2Fpens%2FMWpaoGp.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1620714310%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/a71f0d9433aa70c9d097c0f372d0d9c6/href">https://medium.com/media/a71f0d9433aa70c9d097c0f372d0d9c6/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=750e499e3603" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/css%E7%AD%86%E8%A8%98-image-background-image%E7%9A%84%E6%93%BA%E6%94%BE%E6%96%B9%E5%BC%8F-750e499e3603">CSS筆記-image &amp; background-image的擺放方式</a> was originally published in <a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8">貓科工程師的日常</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS筆記-適合懶人的網頁排版-card]]></title>
            <link>https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/%E7%B6%B2%E9%A0%81%E6%8E%92%E7%89%88%E7%9A%84%E5%A5%BD%E5%B9%AB%E6%89%8B-css-card%E5%AF%A6%E4%BD%9C-3431951c38e7?source=rss-b2327c84f885------2</link>
            <guid isPermaLink="false">https://medium.com/p/3431951c38e7</guid>
            <category><![CDATA[website]]></category>
            <category><![CDATA[cards]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[website-design]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Anthony Tsai]]></dc:creator>
            <pubDate>Sun, 09 May 2021 14:47:57 GMT</pubDate>
            <atom:updated>2021-05-16T11:08:07.227Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DvW-wDcrZ5mdqdjXZMH-LA.png" /></figure><h3>Card的架構</h3><p>card是現代網頁最常見的資料排版方式，他的優勢是對於RWD排版的表現十分靈活，這也是card適合懶人的地方 — 因為他不需要為了不同大小的裝置做大幅度的調整。card的架構是十分靈活的，他沒有特定的架構，唯一的規範是每一張卡片的尺寸必須要一樣，放入的資料類型也必須要一樣。</p><p>這邊以bootstrap裏的card為原型去做介紹：</p><ul><li>card-header代表卡片的上部，有內建置頂的效果</li><li>card-body 代表卡片的中心，會隨著card-header排列下來</li><li>card-footer 代表卡片的底部，有內建置底的效果</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EEgBcZZamI7VV_CWsWfNeA.png" /></figure><p>首先我們要先插入bootstrap，方法很簡單，只要我們在html貼上這一段文字電腦就會做連結的動作（貼在body的前面）</p><pre>&lt;link href=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot; integrity=&quot;sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6&quot; crossorigin=&quot;anonymous&quot;&gt;</pre><h3>常見樣式介紹</h3><h4>上圖下文</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rcx7qbRH2pFwow_YnhIBlw.png" /></figure><p>我們先按照上面的結構寫出最基本的樣式</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/79e93399d63d329e8809616554405cd0/href">https://medium.com/media/79e93399d63d329e8809616554405cd0/href</a></iframe><p>並且用bootstrap內建的標籤 row 讓三張卡片做並排的動作 (…代表上方的html程式碼)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dea2b5e046499fc9650e468ddc27028b/href">https://medium.com/media/dea2b5e046499fc9650e468ddc27028b/href</a></iframe><p>比較特別的是每一個卡片的外面都加上了d-flex align-items-stretch，這是為了讓卡片的高度保持一致，不會隨著文字多寡影響他的高度。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DcB5lAZDtF1TEQ2Vwq8tCg.png" /><figcaption>沒有加d-flex align-items-stretch會造成卡片高度不一致</figcaption></figure><p>最後再用CSS去覆蓋掉bootstrap內建的樣式</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9c1590bac90f1070146c9af67dab09c0/href">https://medium.com/media/9c1590bac90f1070146c9af67dab09c0/href</a></iframe><p>程式碼參考：</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fembed%2Fpreview%2FpoRGRpe%3Fdefault-tabs%3Dhtml%252Cresult%26height%3D600%26host%3Dhttps%253A%252F%252Fcodepen.io%26slug-hash%3DpoRGRpe&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fpen%2FpoRGRpe&amp;image=https%3A%2F%2Fassets.codepen.io%2F4466248%2Finternal%2Fscreenshots%2Fpens%2FpoRGRpe.default.png%3Ffit%3Dcover%26format%3Dauto%26ha%3Dfalse%26height%3D540%26quality%3D75%26v%3D2%26version%3D1619491910%26width%3D960&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/0e0aa22ff965785446090477105dccc5/href">https://medium.com/media/0e0aa22ff965785446090477105dccc5/href</a></iframe><h4>左圖右文</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Usv-66tkTJdAtsdDZfIZA.png" /></figure><p>左圖右文會比上圖下文的結構來的複雜一些，我們會需要1個cards來包覆兩個card，然後一邊的card只有放圖片，另一邊則是維持card-header、card-body、card-footer的結構。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MWnJxfk40HnBndCrHuNWOA.png" /></figure><p>程式碼參考：</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fembed%2Fpreview%2FMWJxPbx%3Fdefault-tabs%3Dhtml%252Cresult%26height%3D600%26host%3Dhttps%253A%252F%252Fcodepen.io%26slug-hash%3DMWJxPbx&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fpen%2FMWJxPbx&amp;image=https%3A%2F%2Fassets.codepen.io%2F4466248%2Finternal%2Fscreenshots%2Fpens%2FMWJxPbx.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1619507370%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/a1a11799f0eb91648ee020f773afd629/href">https://medium.com/media/a1a11799f0eb91648ee020f773afd629/href</a></iframe><h3>結語</h3><p>上面示範了兩種最基本的card樣式，其實card的樣式很多種，變化也很多，所以不用去侷限他的架構應該要長怎樣，可以去多嘗試各式各樣不同的。</p><h4>參考資料</h4><p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Layout_cookbook/Card">https://developer.mozilla.org/en-US/docs/Web/CSS/Layout_cookbook/Card</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3431951c38e7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/%E7%B6%B2%E9%A0%81%E6%8E%92%E7%89%88%E7%9A%84%E5%A5%BD%E5%B9%AB%E6%89%8B-css-card%E5%AF%A6%E4%BD%9C-3431951c38e7">CSS筆記-適合懶人的網頁排版-card</a> was originally published in <a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8">貓科工程師的日常</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS筆記-如何用Table做出好看的表格]]></title>
            <link>https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/%E7%94%A8css-table%E5%81%9A%E5%87%BA%E5%A5%BD%E7%9C%8B%E7%9A%84%E8%A1%A8%E6%A0%BC-7ec639942fea?source=rss-b2327c84f885------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ec639942fea</guid>
            <category><![CDATA[table]]></category>
            <category><![CDATA[website-design]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Anthony Tsai]]></dc:creator>
            <pubDate>Sun, 09 May 2021 13:08:21 GMT</pubDate>
            <atom:updated>2021-05-16T11:12:02.126Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WGUmFddwXrqHLBJdO65n1A.png" /></figure><h3>Table的架構</h3><p>如果要將資料做系統化的分類，使用table標籤是很好的選擇</p><ul><li>table代表表格的標籤</li><li>th代表標題的標籤 h=head</li><li>tr代表行的標籤 r=row</li><li>td代表列的標籤 d=data</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ejEtqfDRJ1mqXfaeyFZ2pA.png" /><figcaption>如果沒有沒有標題的話th可以替換成td</figcaption></figure><p>基本的html架構會長這樣</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec2ad13a7b4efc5917ef72e173621eca/href">https://medium.com/media/ec2ad13a7b4efc5917ef72e173621eca/href</a></iframe><p>程式碼參考</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fembed%2Fpreview%2FrNjZmeY%3Fdefault-tabs%3Dhtml%252Cresult%26height%3D600%26host%3Dhttps%253A%252F%252Fcodepen.io%26slug-hash%3DrNjZmeY&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fpen%2FrNjZmeY&amp;image=https%3A%2F%2Fassets.codepen.io%2F4466248%2Finternal%2Fscreenshots%2Fpens%2FrNjZmeY.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1618812986%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f31fc73ecdf877934313f80711be0d3/href">https://medium.com/media/2f31fc73ecdf877934313f80711be0d3/href</a></iframe><h3>客製化樣式</h3><p>在&lt;table&gt;標籤裡輸入</p><ul><li>border=&quot;1&quot; table外層會有1px的border</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*asnT5yHWJ_ZTRUw-Yp_S0Q.png" /></figure><ul><li>cellpadding=&quot;10&quot; table裡格子會有10px的padding</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wh3umhlUbb5ynrTBHBvwKg.png" /></figure><p>應用在&lt;table&gt;的css</p><ul><li>border-collapse:separate; 邊框彼此間分開 預設值</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S1sS6hn7ZlDn8FzerftXCQ.png" /></figure><ul><li>border-collapse:collapse; 邊框合併為單一邊框</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pq6Ht3as-BBW5FWMoiFMFw.png" /></figure><ul><li>border-collapse:inherit; 繼承自父層的 border-collapse 屬性值。</li></ul><h3>樣式範例</h3><h4>樣式一</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gIX4-X6acuyfdzyZrXTauA.png" /></figure><ul><li>在table的CSS設定 border-collapse:collapse; 把邊界的border拿掉</li><li>th用深色背景跟白色文字可以跟td去做區隔</li><li>用nth-of-type(even)建立灰色背景，建立交錯的效果</li><li>不適合欄位合併的表格</li></ul><p>程式碼參考</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fembed%2Fpreview%2FpoRGydz%3Fdefault-tabs%3Dhtml%252Cresult%26height%3D600%26host%3Dhttps%253A%252F%252Fcodepen.io%26slug-hash%3DpoRGydz&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fpen%2FpoRGydz&amp;image=https%3A%2F%2Fassets.codepen.io%2F4466248%2Finternal%2Fscreenshots%2Fpens%2FpoRGydz.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1619265615%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/422b014dbe2b9b30cf1816a0a093ace4/href">https://medium.com/media/422b014dbe2b9b30cf1816a0a093ace4/href</a></iframe><h4>樣式二</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eNyMxd_iAMFFuczhYDlE0w.png" /></figure><ul><li>如果橫向跟縱向都想要有heading的話，可以用不同的強調效果</li><li>取消交錯的顏色，而是用hover來凸顯現在滑鼠預覽到的位置</li><li>不適合欄位合併的表格</li></ul><p>程式碼參考</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fembed%2Fpreview%2FxxgagXb%3Fdefault-tabs%3Dhtml%252Cresult%26height%3D600%26host%3Dhttps%253A%252F%252Fcodepen.io%26slug-hash%3DxxgagXb&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fpen%2FxxgagXb&amp;image=https%3A%2F%2Fassets.codepen.io%2F4466248%2Finternal%2Fscreenshots%2Fpens%2FxxgagXb.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1619268461%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/320891837adf2b44a7f12168696ba807/href">https://medium.com/media/320891837adf2b44a7f12168696ba807/href</a></iframe><h4>樣式三</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ir0J64PXZwBfWiir8EuIdA.png" /></figure><ul><li>使用虛線讓整體看起來不會那麼死板</li><li>表格的上下左右都有線所以可以使用合併表格</li><li>製作上要活用並懂得區分nth-child跟nth-of-type</li></ul><p>程式碼參考</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fembed%2Fpreview%2FmdRvEVo%3Fdefault-tabs%3Dcss%252Cresult%26height%3D600%26host%3Dhttps%253A%252F%252Fcodepen.io%26slug-hash%3DmdRvEVo&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fpen%2FmdRvEVo&amp;image=https%3A%2F%2Fassets.codepen.io%2F4466248%2Finternal%2Fscreenshots%2Fpens%2FmdRvEVo.default.png%3Ffit%3Dcover%26amp%3Bformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D2%26amp%3Bversion%3D1619269983%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/1cc322da9a6c629a0ab6023190c5be55/href">https://medium.com/media/1cc322da9a6c629a0ab6023190c5be55/href</a></iframe><h3>結語</h3><p>這裡給大家三種樣式做參考，因為table算是一個比較舊的標籤了，所以相對來說限制也比較多，如果想要嘗試更豐富變化的表格，可以考慮用ul跟li去實現歐。</p><h4>參考資料</h4><p><a href="https://dev.to/dcodeyt/creating-beautiful-html-tables-with-css-428l">Creating beautiful HTML tables with CSS</a></p><p><a href="https://developer.mozilla.org/zh-TW/docs/Web/HTML/Element/table">https://developer.mozilla.org/zh-TW/docs/Web/HTML/Element/table</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ec639942fea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/%E7%94%A8css-table%E5%81%9A%E5%87%BA%E5%A5%BD%E7%9C%8B%E7%9A%84%E8%A1%A8%E6%A0%BC-7ec639942fea">CSS筆記-如何用Table做出好看的表格</a> was originally published in <a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8">貓科工程師的日常</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS 筆記-如何區分Block、inline & inline-block?]]></title>
            <link>https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/%E5%85%A8%E9%83%A8%E7%B5%A6%E6%88%91%E4%B9%96%E4%B9%96%E7%AB%99%E5%A5%BD-block-%E5%A1%8A%E7%8B%80%E5%85%83%E7%B4%A0-inline-%E8%A1%8C%E5%85%A7%E5%85%83%E7%B4%A0-inline-block-%E8%A1%8C%E5%85%A7%E5%8D%80%E5%A1%8A%E5%85%83%E7%B4%A0-%E4%BB%8B%E7%B4%B9-5f7b6b78744f?source=rss-b2327c84f885------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f7b6b78744f</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[website-design]]></category>
            <category><![CDATA[block]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[inline-block]]></category>
            <dc:creator><![CDATA[Anthony Tsai]]></dc:creator>
            <pubDate>Sat, 17 Apr 2021 14:01:45 GMT</pubDate>
            <atom:updated>2021-05-16T10:48:52.636Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hOo_BvK1pBf4kW0z88DNGg.png" /></figure><p>新手很常犯的一個錯誤（包括我）是把塊狀元素內放進塊狀元素，然後你就會被老鳥工程師糾正了。如果使用了錯誤的擺放方式會導致程式碼變成空的，或是抓不到這一行程式，後果可是相當嚴重的，所以要了解它們的使用規則是很重要的！</p><h3>區塊元素</h3><p>block又被稱為區塊元素</p><p>它會使元素變成一個區塊，每一個區塊會佔掉一行，所以下一個區塊元素必定會換行。</p><ul><li>宣告的方式 display:block</li><li>可以設定高度跟寬度</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*lf-7sAtJESkzeneAWc5J_w.png" /></figure><ul><li>常見的區塊元素： h1~h6, p, div, section, nav, ol, ul, li, dl, dt, dd, form,table</li></ul><h4>特殊規則</h4><ul><li>大部分的區塊元素內可以包含區塊元素或行內元素</li><li>h1~h6、p、dt標籤內不能包含區塊元素，所以文字標籤的內容我們通常會使用span標籤</li><li>li標籤裡面可以放div、ul、ol標籤</li></ul><h3>行內元素</h3><p>inline又被稱為區塊元素</p><p>每一個區塊不會佔用任何空間，沒有辦法設置寬高，只能靠子元素撐起來，要到畫面滿出來才會換行。</p><ul><li>上下margin、padding無效，左右margin、padding有效</li><li>中間會有空格(不是padding or margin)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*sFYbq9pC35pTIfTD2zAsyA.png" /></figure><ul><li>預設為行內元素: a, span, label, :before, :after</li></ul><h4>特殊規則</h4><ul><li>行內元素內只能包含行內元素</li><li>a標籤內不能包含a，會失去作用</li></ul><h4>行內區塊元素</h4><p>inline-block 又被稱為行內區塊元素</p><p>有設置寬高的時候會變成區塊元素，但要到畫面滿出來才會換行。當沒有設置寬高的時候會變成行內元素，會用子元素撐起來。</p><ul><li>上下左右margin、padding有效</li><li>中間會有空格(不是padding or margin)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*YvoTohDSw1ecBtxHW1YaFQ.png" /></figure><ul><li>預設為行內區塊元素: img, input, textarea, button</li></ul><h3>常見改動</h3><p>當我們的標籤的預設元素不符合我們的要求，我們也可以自行設定display去覆蓋掉原本的元素。比較常見的有：</p><ul><li>a變成block 或 inline-block</li><li>li變成inline-block</li><li>div變成block 或 inline-block</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f7b6b78744f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/%E5%85%A8%E9%83%A8%E7%B5%A6%E6%88%91%E4%B9%96%E4%B9%96%E7%AB%99%E5%A5%BD-block-%E5%A1%8A%E7%8B%80%E5%85%83%E7%B4%A0-inline-%E8%A1%8C%E5%85%A7%E5%85%83%E7%B4%A0-inline-block-%E8%A1%8C%E5%85%A7%E5%8D%80%E5%A1%8A%E5%85%83%E7%B4%A0-%E4%BB%8B%E7%B4%B9-5f7b6b78744f">CSS 筆記-如何區分Block、inline &amp; inline-block?</a> was originally published in <a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8">貓科工程師的日常</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS筆記-為什麼我的z-index 失效了？]]></title>
            <link>https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/%E8%AB%8B%E4%B8%8D%E8%A6%81%E6%93%8B%E4%BD%8F%E6%88%91%E7%9A%84%E8%A6%96%E7%B7%9A-%E7%94%A8z-index%E8%AA%BF%E6%95%B4%E5%A0%86%E7%96%8A%E9%A0%86%E5%BA%8F-e770803ac36d?source=rss-b2327c84f885------2</link>
            <guid isPermaLink="false">https://medium.com/p/e770803ac36d</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[website-design]]></category>
            <category><![CDATA[z-index]]></category>
            <dc:creator><![CDATA[Anthony Tsai]]></dc:creator>
            <pubDate>Fri, 16 Apr 2021 07:03:13 GMT</pubDate>
            <atom:updated>2021-05-16T10:45:42.013Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rRD43NmHLgKt7nbucC6Rqg.png" /></figure><h3>z-index沒有作用</h3><p>z-index是一個非常好用的排版功能，但是它偶而會出現z-index:2覆蓋不過去z-index:1的情況，這時候就會非常的頭大，這時候可能有兩個原因導致這種情況發生：</p><h4><em>原因一：父元素的順位</em></h4><p>z-index有一個特殊的規則：“你如果沒有家世的話無論你的能力再好，你都要乖乖地排在後面”，簡單來說就是當父元素的順位不一樣的時候會以父元素的順位為優先。以下面的圖為例子：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*ixzuiK6pKSOFz41XXDF7zA.png" /></figure><p>橘色都設定z-index:100了，還是被z-index:10的藍綠色壓到，這是因為z-index順序是以父元素為優先。兩個物件會受到最外層的紅色數值給影響（2 &gt; 1，所以z-index:2的紅色不管裡面藍綠色設定多少，都會在z-index:1的橘色之上）此時我們只要把父元素的z-index調整為一樣即可。</p><p>程式碼參考</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fembed%2Fpreview%2FMWeMryY%3Fheight%3D600%26slug-hash%3DMWeMryY%26default-tabs%3Dcss%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fpen%2FMWeMryY&amp;image=https%3A%2F%2Fassets.codepen.io%2F4466248%2Finternal%2Fscreenshots%2Fpens%2FMWeMryY.default.png%3Ffit%3Dcover%26format%3Dauto%26ha%3Dfalse%26height%3D540%26quality%3D75%26v%3D2%26version%3D1618483031%26width%3D960&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/fd22e153f419dedd1def03687f38e493/href">https://medium.com/media/fd22e153f419dedd1def03687f38e493/href</a></iframe><h4>原因二：沒有設position</h4><p>有時候我們已經檢查了父元素的順位了，還是會出錯。有可能是因為你沒有設定position，沒有設定position，z-index就不會作用。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*DOPSsiTE8ok72kTAWEI_-Q.png" /></figure><p>上方紅色都設定為z-index:2了，藍綠色還是被z-index:10的橘色壓到。因為第一個z-index沒有設定position，第二個有設定position，當我們把上方紅色補上position:relative就恢復正常了。</p><p>程式碼參考</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fembed%2Fpreview%2FMWeMrJw%3Fheight%3D600%26slug-hash%3DMWeMrJw%26default-tabs%3Dcss%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fjohnnytsai81%2Fpen%2FMWeMrJw&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/760fb1ad0262ec257b840756772c160b/href">https://medium.com/media/760fb1ad0262ec257b840756772c160b/href</a></iframe><h3>結語</h3><p>只要你深入瞭解z-index，會發現它其實並不複雜。麻煩的地方是當你網頁架構複雜時，需要一個一個去檢查是否有忘記設定position或是父元素的z-index設定。</p><h4>參考資料</h4><p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/z-index">z-index</a></p><p>DEMO（可以自行操作玩玩看）</p><p><a href="https://thirumanikandan.com/posts/learn-z-index-using-a-visualization-tool">https://thirumanikandan.com/posts/learn-z-index-using-a-visualization-tool</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e770803ac36d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/%E8%AB%8B%E4%B8%8D%E8%A6%81%E6%93%8B%E4%BD%8F%E6%88%91%E7%9A%84%E8%A6%96%E7%B7%9A-%E7%94%A8z-index%E8%AA%BF%E6%95%B4%E5%A0%86%E7%96%8A%E9%A0%86%E5%BA%8F-e770803ac36d">CSS筆記-為什麼我的z-index 失效了？</a> was originally published in <a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8">貓科工程師的日常</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[超級大腦飲食計畫 Pt.2｜輸出筆記]]></title>
            <link>https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/%E8%B7%9F%E8%91%97%E6%B6%88%E5%8C%96%E9%81%93%E8%B5%B0-%E8%B6%85%E7%B4%9A%E5%A4%A7%E8%85%A6%E9%A3%B2%E9%A3%9F%E8%A8%88%E7%95%AB-pt-4-d2cf1bfa304?source=rss-b2327c84f885------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2cf1bfa304</guid>
            <category><![CDATA[health]]></category>
            <category><![CDATA[food]]></category>
            <category><![CDATA[digest]]></category>
            <category><![CDATA[health-foods]]></category>
            <dc:creator><![CDATA[Anthony Tsai]]></dc:creator>
            <pubDate>Sat, 03 Apr 2021 09:35:18 GMT</pubDate>
            <atom:updated>2021-04-20T02:47:37.762Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7CGR_zUEVfD9QNI94C8rgg.png" /></figure><p>購書連結 <a href="https://www.books.com.tw/products/0010816783">https://www.books.com.tw/products/0010816783</a></p><blockquote><em>Part. 1連結<br></em><a href="https://anthonytsai81.medium.com/%E8%B6%85%E7%B4%9A%E5%A4%A7%E8%85%A6%E9%A3%B2%E9%A3%9F%E8%A8%88%E7%95%AB-pt-1-%E8%BC%B8%E5%87%BA%E7%AD%86%E8%A8%98-3673b0c0ab53">https://anthonytsai81.medium.com/%E8%B6%85%E7%B4%9A%E5%A4%A7%E8%85%A6%E9%A3%B2%E9%A3%9F%E8%A8%88%E7%95%AB-pt-1-%E8%BC%B8%E5%87%BA%E7%AD%86%E8%A8%98-3673b0c0ab53</a></blockquote><h3>精緻碳水的壞處</h3><p>少吃高密度的碳水化合物，會讓胰島素頻繁增高，如果長期升高會導致脂肪儲存和身體發炎，所以我們不能選擇太精緻的碳水化合物（像白米、麵、白麵包），或是GI太高的食物（馬鈴薯）。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wPMxIYdoU-pq0P1leKvUXg.jpeg" /><figcaption>低GI的碳水化合物：糙米、地瓜</figcaption></figure><p>我們吃下的碳水化合物，會被身體轉化為葡萄糖，當葡萄糖沒有被消耗的時候會產生活性含氧物又稱自由基。雖然自由基不是全然是壞的，他有發送訊號的作用，但是過多的自由基會導致許多疾病的發生。</p><p>當我們沒有攝取碳水化合物，會使胰島素降低，身體代謝就會產生酮體。酮相較於葡萄糖，所產生的廢氣較少，也能產生抗氧化物，形成一個互相抵銷的作用。我們只要利用斷食法（空腹12~16小時）或是少吃碳水化合物可以達到這樣的效果。</p><p>因為人處於飢餓的時候，脂肪組織會燃燒分解，脂肪酸會釋放到血液之中，形成同形成酮體的燃料（酮可以產生大腦必須的能量的60%），才會有所謂的16:8斷食法。</p><p>許多宗教會有自己的進食儀節，像是“齋戒月”、“贖罪日”，適度的禁食能誘發肝臟做出大掃除的動作（把無法運作的蛋白質帶走），讓細胞新生。</p><blockquote><em>折衷的方法是睡前2~3小時不吃東西，起床1~2小時不吃東西</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ommbYiIMMMA9gS4eHi0V5g.jpeg" /><figcaption>如果想吃碳水化合物的時候，可以用鹽裡面的鈉止住難受的感覺</figcaption></figure><h3>膽固醇不是個壞東西</h3><p>膽固醇對人體很重要，所以不用刻意節制，但也不需要攝取過量。</p><p>膽固醇是細胞膜的重要成分，能確保營養素進出細胞順暢，也是具有保護的抗氧化物。（給予自由基電子、減少疾病、減緩衰老）</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cYNXx8FsYfU6hiMZXz-JsQ.jpeg" /><figcaption>人一天可以吃3顆蛋</figcaption></figure><p>低密度蛋白粒子的功能是拿來運送膽固醇和三酸甘油脂。但低密度蛋白粒子受損（被自由基氧化或被糖分子結合）或低密度蛋白的通路被堵死（過量的加工食品或高密度碳水化合物），膽固醇和三酸甘油脂就送不出去了。</p><p>所以很多人誤以為膽固醇是兇手，但其實是糖跟碳水化合物過量的關係。</p><blockquote><em>你可以食用黑巧克力，少吃穀物、糖、澱粉、鉀、硝酸鹽保持血脂健康。</em></blockquote><h3>養好菌要吃對東西</h3><p>在我們的消化道充滿了各式各樣的細菌（微生物），在大腸的地方分佈最多。這些微生物最喜歡吃纖維素，纖維在經過代謝後會產生“短鏈脂肪酸”，其中最好的短鏈脂肪酸是丁酸，能抗老化，跟降低發炎。</p><p>益生菌是我們身體的短暫過客，他可以調節我們的免疫系統，也能強化腸道屏障，可以吃益生菌的保健食品，但不一定有效果，此外可以攝取富含益生菌（泡菜）的食物。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TgPjEKgYHFrWy-KS4fZFYw.jpeg" /><figcaption>養好箘可以提升身體的免疫力</figcaption></figure><p>要讓腸道發炎有兩個步驟：</p><ol><li>讓你的腸壁粘膜減少：吃乳化劑的加工食品，吃太少纖維讓微生物吃掉粘膜</li></ol><p>2. 讓你的腸壁受到刺激發炎：吃有大量麩質的東西，如麵包、義大利麵</p><p>麩胺酸能增加大腦的興奮程度，有助於學習、記憶、突觸新生，但分泌過多會傷害神經細胞，GABA會降低大腦的興奮程度，有抑制麩胺酸的作用。讓麩胺酸和GABA平衡才能維持最佳狀態。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_iKvkdPebgZkx3QQJIdh9Q.jpeg" /></figure><blockquote><em>咖啡因能刺激麩胺酸的活性，抑制GABA 冥想、瑜珈或深呼吸能增加GABA的分泌</em></blockquote><p>多巴胺能讓人感覺良好，如果太頻繁的刺激導致失調，要求更多的多巴胺才能滿足，其中糖跟碳水化合物會讓多巴胺上升，導致飲食過度、上癮。</p><h3>睡眠的好處</h3><p>飢餓肽是由胃分泌，會在飢餓的時候增加，讓你有進食的慾望，少量多餐能讓飢餓肽分泌少一點，睡眠不足會導致飢餓肽濃度上升。</p><p>瘦體素可以讓我們燃燒脂肪速率增加，但是瘦體素長期偏高會產生抗性，讓減肥的人承受更大的痛苦。</p><blockquote><em>我們偶而可以吃一餐高碳水化合物（低脂） <br>➥ 米飯、馬鈴薯、奇異果、莓果、柑橘</em></blockquote><p>生長賀爾蒙可以調節認知能力及改善大腦功能（處理速度情緒），藉由斷食或是進入三溫暖可以讓生長賀爾蒙劇增，但慢性壓力跟睡眠不足會導致生長賀爾蒙減少。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nIfDE7Dc6BZUOZUVcGH9hA.jpeg" /></figure><p>皮脂醇是調節人體晝夜節奏主要的賀爾蒙，在清晨時皮脂醇會大量分泌，如果胰島素和皮脂醇同時出現的時候，皮脂醇就不會消耗脂肪，而是代謝肌肉。所以我們早餐，可以不吃碳水化合物，只吃蛋白質，蔬菜和脂肪。</p><h3><em>超級食物</em></h3><ol><li>冷壓初榨橄欖油：辛辣的橄欖油代表他是一個良好的橄欖油（通常帶有青草味）初榨的營養成分較多，但如果加熱就會消失。</li><li>酪梨：熟的酪梨要馬上放進冰箱，否則一、兩天就壞掉了。可以加在沙拉、果昔裡面。</li><li>藍莓：要選擇有機藍莓，也可以吃黑莓、山桑子、覆盆子、草莓。可以打成冰沙或當零嘴吃。</li><li>黑巧克力：要選擇未經鹼化處理且可可含量達80%以上的巧克力。最好選擇有機或公平貿易認證的產品。</li><li>雞蛋：牧場飼養 &gt; 添加Omega3在飼料 &gt; 放養 &gt; 傳統籠飼。最好煮到半熟狀態，全熟會破壞完整的營養。</li><li>草飼牛肉：草飼牛富含Omega3，要買標示grass-fed或者grass-finished的牛肉。低溫烹煮可以保留維生素E，跟高纖蔬菜一起吃（菠菜、甘藍）。</li><li>深綠色葉菜：富含葉酸和鎂、葉酸可以排毒、鎂可以提供你身體的酶，並修復你的DNA。深綠色葉菜有：菠菜、蘿蔓生菜、捲心菜、羽衣甘藍、芥菜、芝麻葉、青江菜。</li><li>青花菜：富含蘿蔔硫素，可以減少免疫性疾病，大腦發炎、肥胖症。吃幼嫩的花椰菜更有效果（菜芽）。</li><li>野生鮭魚：是魚類裡最有營養價值的，可以提高認知功能、保護皮膚不曬傷、保護眼睛、抗氧化、清除自由基。如果想換換口味可以吃沙丁魚、鯡魚、鯖魚、蝦、蟹。</li></ol><h3>結論</h3><p>在讀完此書之後，我就開始買煮飯相關的器具跟食譜了😂😂😂</p><p>書中說到讓食物變壞最大的原因是來自於油，餐廳為了要提高利潤一定不會用很好的油，情況允許的話外食我會盡量買水煮餐便當，週末自己下廚，盡量減少植物油的攝取。</p><p>一開始會很不習慣，但我覺得比起書中建議的飲食清單來得好了。所以先從吃好油開始改變自己的飲食習慣，再去慢慢改變吃的東西。</p><p>P.S. 橄欖油的味道很重，加在料理裏會破壞原本的味道。如果無法接受也可以用亞麻仁油代替，但價格會更高就是😂😂😂</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2cf1bfa304" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/%E8%B7%9F%E8%91%97%E6%B6%88%E5%8C%96%E9%81%93%E8%B5%B0-%E8%B6%85%E7%B4%9A%E5%A4%A7%E8%85%A6%E9%A3%B2%E9%A3%9F%E8%A8%88%E7%95%AB-pt-4-d2cf1bfa304">超級大腦飲食計畫 Pt.2｜輸出筆記</a> was originally published in <a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8">貓科工程師的日常</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[超級大腦飲食計畫 Pt.1｜輸出筆記]]></title>
            <link>https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/%E8%B6%85%E7%B4%9A%E5%A4%A7%E8%85%A6%E9%A3%B2%E9%A3%9F%E8%A8%88%E7%95%AB-pt-1-%E8%BC%B8%E5%87%BA%E7%AD%86%E8%A8%98-3673b0c0ab53?source=rss-b2327c84f885------2</link>
            <guid isPermaLink="false">https://medium.com/p/3673b0c0ab53</guid>
            <category><![CDATA[oil]]></category>
            <category><![CDATA[food]]></category>
            <category><![CDATA[healthy]]></category>
            <category><![CDATA[digest]]></category>
            <dc:creator><![CDATA[Anthony Tsai]]></dc:creator>
            <pubDate>Sun, 14 Mar 2021 10:01:50 GMT</pubDate>
            <atom:updated>2021-04-20T02:49:15.166Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7CGR_zUEVfD9QNI94C8rgg.png" /></figure><p>購書連結 <a href="https://www.books.com.tw/products/0010816783">https://www.books.com.tw/products/0010816783</a></p><p>在台灣經歷過地溝油事件後，人們對於食品安全的問題越來越重視。開始會注意食材的原物料是什麼，以及食物的製程。那這本書就是很好的啟蒙書，書中有提到許多跟生物科學相關的知識，但是作者的敘述簡單易懂，不會讓人艱深難懂。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SaA5IN4WsA950jvL72ubRw.jpeg" /></figure><p>就如作者在書中開頭所說：我們的上一代因為資訊不發達，錯誤的飲食觀念給身體帶來許多的毛病，也灌輸我們許多錯誤的飲食觀念， 所以我們要趁還年輕的時候就把身體養好！</p><p>在食物業者強力播報不實的數據下，人們在十幾年前被灌輸了很多不實的知識，造成現在出現了很多文明病，因為我們吃下了許多的加工食品（過度精緻）所造成。</p><h3>好油與壞油</h3><p>油有分為好的油跟壞的油，我們吃下去的脂肪也分為很多種:</p><p><strong>I. 多元不飽和脂肪：</strong></p><p>多元不飽和就是Omega3和Omega6、他有抗發炎及健康腦細胞的功效</p><figure><img alt="我們要吃從”天然”食物中來的多元不飽和脂肪" src="https://cdn-images-1.medium.com/max/1024/1*1rqMrpr5B9EybtnKZpw0dg.jpeg" /><figcaption>橄欖油的Omega6含量不高，不需要擔心攝取過多Omega6</figcaption></figure><p>因為我們平常吃的食物就富含Omega6了（EX: 葵花油、大豆油），所以我們應要多攝取Omega3，兩者要平衡才能讓神經細胞模（影響我們的心智健康跟記憶）達到最佳狀態如果多元不飽和脂肪經過加工會被氧化，而變成“anti”，損害你的腦細胞。（植物油幾乎都有）</p><p>Omega3的來源：</p><ol><li>魚油 → 可由魚肉或魚油營養品攝取</li><li>ALA → 核桃、亞麻籽、奇亞籽 → 但男性ALA轉換成DHA的能力有限，效果不佳</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yrsNE6ettq5WrIPLFuMNDw.jpeg" /><figcaption>食用魚油膠囊也是一個很好的選擇</figcaption></figure><p><strong>II. 單元不飽和脂肪：</strong></p><p>單元不飽和脂肪又被稱為Omega9，是所有種類的油裡最安全的成分，能<strong>讓神經元能快速傳遞。</strong></p><p>如何獲得Omega9:</p><ol><li>植物油（耐熱溫度：橄欖油 160度、苦茶油 252度、亞麻仁油 115度） <br>➥ 高溫烹煮容易流失營養，亞麻仁油只能涼伴，不得高溫煎</li><li>野生鮭魚</li><li>草飼牛肉</li><li>酪梨</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9jNW5jTFZibawfDzkFc11A.jpeg" /><figcaption>酪梨是超級食物之一</figcaption></figure><p>III. 飽合脂肪</p><p>維持生命、生產賀爾蒙的重要成分。</p><p>如何獲得飽合脂肪:</p><ol><li>乳酪</li><li>奶油</li><li>椰子油 [耐熱170度]</li><li>橄欖油 [耐熱160度]</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YBTT5D5C81CaC4BdzZzIXA.jpeg" /><figcaption>飽和脂肪又被稱為動物性脂肪</figcaption></figure><p>IV. 反式脂肪</p><p>天然的反式脂肪可加強代謝、降低癌症風險，但經過氰化產生的反式脂肪可能導致心臟疾病、身體發炎。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eCQaEavOlGDJyxUElENrtg.jpeg" /><figcaption>氰化的反式脂肪是絕對ＮＧ的食物</figcaption></figure><p>如何獲得反式脂肪:</p><ol><li>乳瑪琳</li><li>蛋糕</li><li>堅果奶油</li></ol><h3>包著糖衣的毒藥</h3><p>糖是現代生活的新寵兒，市面的糖大部分都是精製而成。我們在攝取碳水化合物的時候，口腔的消化酶會轉化成糖，所以我們不需要再攝取糖了。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LBubmRAAlrV9TpcInR_72g.jpeg" /><figcaption>市面上的糖都是精緻的食物</figcaption></figure><p>果糖不會進入血液，而是直接進入肝臟變成脂肪。（如果超過肝臟能負荷的量，會分泌三酸甘油脂，三酸甘油脂會造成血管硬化、心臟病等等）</p><p>太多的果糖會造成腸躁症、腹瀉，糖會刺激多巴胺的分泌，讓你心情愉悅且有成癮性。</p><p>糖有相當多的“代稱”但是他們都是糖的一種</p><ul><li>果糖</li><li>葡萄糖</li><li>蜂蜜</li><li>楓糖</li><li>蔗糖 （50%果糖＋50%葡萄糖）</li><li>糙米糖漿</li><li>果汁</li><li>乳糖</li><li>大麥麥芽</li><li>麥芽糊精</li><li>玉米糖漿</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T5yiwMg2fr8KOXrxD4Ms4g.jpeg" /><figcaption>它們的名稱通常會被寫在包裝袋上</figcaption></figure><blockquote><em>判斷穀物的健康程度是看“升糖指數”，因為糖生的越快會縮短細胞的壽命，表示他會增加你老化的速度</em></blockquote><p>果糖具有成癮性，容易吃了想再吃，是糖裡非常不好的成分。而且果糖會增加肝臟脂肪 113% ，且比葡萄糖 59% 多</p><p>吃太多高糖水果也會導致認知異常</p><ul><li>無花果</li><li>椰棗</li><li>芒果</li><li>香蕉</li><li>鳳梨</li></ul><blockquote><em>健康的低糖水果：椰子、酪梨、橄欖、可可果、莓果</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*66R37KdeIn0-INgAWUNFpA.jpeg" /><figcaption>藍莓是超級食物之一</figcaption></figure><h3>小結</h3><p>橄欖油或應是你主要的食用油（苦茶油也可以），因為平常在外攝取的油含有足夠的Omega6，橄欖油的Omega6含量較少，正好可以均衡一下。</p><p>糖就像一個慢性的毒品，對我們的身體帶來許多壞處，但我們又無法擺脫它帶來的愉悅感。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3673b0c0ab53" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8/%E8%B6%85%E7%B4%9A%E5%A4%A7%E8%85%A6%E9%A3%B2%E9%A3%9F%E8%A8%88%E7%95%AB-pt-1-%E8%BC%B8%E5%87%BA%E7%AD%86%E8%A8%98-3673b0c0ab53">超級大腦飲食計畫 Pt.1｜輸出筆記</a> was originally published in <a href="https://medium.com/%E8%B2%93%E7%A7%91%E5%B7%A5%E7%A8%8B%E5%B8%AB%E7%9A%84%E6%97%A5%E5%B8%B8">貓科工程師的日常</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>