<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6695113908050506817</id><updated>2024-08-29T14:58:26.404-07:00</updated><category term="CSS"/><category term="Windows"/><category term="Illustrator"/><category term="Article"/><category term="Word"/><category term="SEO"/><category term="文章"/><category term="Antivirus"/><category term="Download"/><category term="線上工具"/><category term="線上教學"/><category term="Dreamweaver"/><category term="HTML"/><category term="Internet"/><category term="Printer"/><category term="Printing"/><category term="Pseudo Element"/><category term="Video"/><category term="jQuery"/><category term="jQuery plugin"/><category term="免費中文網頁字型"/><category term="虛擬元素"/><category term="Bootstrap"/><category term="CSS3"/><category term="Color Picker"/><category term="Concept"/><category term="Flexbox"/><category term="Font"/><category term="JavaScript"/><category term="Office"/><category term="PHP"/><category term="Pseudo Class"/><category term="SASS"/><category term="SQL"/><category term="SuperResize"/><category term="W3.CSS"/><category term="Web Templates"/><category term="Windows Live Messenger"/><category term="design"/><category term="亂字假文"/><category term="全螢幕背景"/><category term="動畫效果"/><category term="勵志文章"/><category term="多國語言"/><category term="多層級收合式選單"/><category term="小工具"/><category term="技術規範"/><category term="文字比對"/><category term="淡入"/><category term="淡入淡出效果"/><category term="漸層背景"/><category term="網站標準技術"/><category term="網頁切換"/><category term="虛擬類別"/><category term="觀念文章"/><category term="設計"/><category term="開機自動連線"/><title type='text'>網頁設計怎麼回事</title><subtitle type='html'>從小到大，由外包內，層層疊疊，錯綜複雜，用簡單的規則，處理複雜的世界。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>86</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-8369501005545669106</id><published>2017-10-26T20:45:00.003-07:00</published><updated>2017-10-26T21:05:37.583-07:00</updated><title type='text'>將表單的控制元件 (如: input) 與相關說明文字產生連結，讓滑鼠點擊文字時，也可以觸發相關控制元件產生作用</title><content type='html'>使用HTML &amp;lt;label&amp;gt; 標籤的 for 屬性，可以將表單的控制元件 (如: input) 與相關說明文字產生連結，讓滑鼠點擊文字時，也可以對相關控制元件產生作用。&lt;br /&gt;
有兩種用法：&lt;br /&gt;
&lt;h2&gt;
第一種是 &amp;lt;label for=&quot;id&quot;&amp;gt; 和 &amp;lt;input id=&quot;&quot;&amp;gt;&lt;/h2&gt;
&lt;h3&gt;
Example:&lt;/h3&gt;
&lt;code&gt;&amp;lt;form&amp;gt;
&lt;br /&gt;&amp;nbsp;&amp;lt;label for=&quot;male&quot;&amp;gt;Male&amp;lt;/label&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;input type=&quot;radio&quot; name=&quot;sex&quot; id=&quot;male&quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;label for=&quot;female&quot;&amp;gt;Female&amp;lt;/label&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;input type=&quot;radio&quot; name=&quot;sex&quot; id=&quot;female&quot; /&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/code&gt;
&lt;br /&gt;
&lt;h2&gt;
第二種是直接用 &amp;lt;label&amp;gt; 包住 &amp;lt;input /&amp;gt; 和文字&lt;/h2&gt;
&lt;h3&gt;
Example:&lt;/h3&gt;
&amp;lt;label&amp;gt;&amp;lt;input type=&quot;checkbox&quot; name=&quot;swim&quot; id=&quot;interest&quot; /&amp;gt; Swim&amp;lt;/label&amp;gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/8369501005545669106/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/8369501005545669106' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/8369501005545669106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/8369501005545669106'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/10/input.html' title='將表單的控制元件 (如: input) 與相關說明文字產生連結，讓滑鼠點擊文字時，也可以觸發相關控制元件產生作用'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-3263810400741287459</id><published>2017-09-20T07:30:00.003-07:00</published><updated>2017-09-20T07:30:21.732-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="免費中文網頁字型"/><title type='text'>Noto Sans TC - 免費中文網頁字型</title><content type='html'>免費的網頁用中文字型 Noto Sans TC (思源黑體）&lt;br /&gt;
&lt;br /&gt;
Link&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;@import url(//fonts.googleapis.com/earlyaccess/notosanstc.css);&lt;/span&gt;&lt;br /&gt;
Example&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;font-family: &#39;Noto Sans TC&#39;, sans-serif;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
他有 Thin, Light, Regular, Medium, Bold and Black 六種樣式，如下：&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;@font-face {
  font-family: &#39;Noto Sans TC&#39;;
  font-style: normal;
  font-weight: 100;
  src: url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Thin.woff2) format(&#39;woff2&#39;),
       url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Thin.woff) format(&#39;woff&#39;),
       url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Thin.otf) format(&#39;opentype&#39;);
}&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;@font-face {&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;  font-family: &#39;Noto Sans TC&#39;;
  font-style: normal;
  font-weight: 300;
  src: url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Light.woff2) format(&#39;woff2&#39;),
       url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Light.woff) format(&#39;woff&#39;),
       url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Light.otf) format(&#39;opentype&#39;);
}&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;@font-face {&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;   font-family: &#39;Noto Sans TC&#39;;
   font-style: normal;
   font-weight: 400;
   src: url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Regular.woff2) format(&#39;woff2&#39;),
        url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Regular.woff) format(&#39;woff&#39;),
        url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Regular.otf) format(&#39;opentype&#39;);&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;}&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;@font-face {
&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;   font-family: &#39;Noto Sans TC&#39;;
   font-style: normal;
   font-weight: 500;
   src: url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Medium.woff2) format(&#39;woff2&#39;),
        url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Medium.woff) format(&#39;woff&#39;),
        url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Medium.otf) format(&#39;opentype&#39;);
}&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;@font-face {
&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;   font-family: &#39;Noto Sans TC&#39;;
   font-style: normal;
   font-weight: 700;
   src: url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Bold.woff2) format(&#39;woff2&#39;),
        url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Bold.woff) format(&#39;woff&#39;),
        url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Bold.otf) format(&#39;opentype&#39;);
}&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;@font-face {
&lt;/pre&gt;
&lt;pre style=&quot;white-space: pre-wrap; word-wrap: break-word;&quot;&gt;   font-family: &#39;Noto Sans TC&#39;;
   font-style: normal;
   font-weight: 900;
   src: url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Black.woff2) format(&#39;woff2&#39;),
        url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Black.woff) format(&#39;woff&#39;),
        url(//fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Black.otf) format(&#39;opentype&#39;);
}&lt;/pre&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;※ 如果沒有用到所有字型，可以選用用到的部分放置 CSS 檔中。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/3263810400741287459/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/3263810400741287459' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/3263810400741287459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/3263810400741287459'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/noto-sans-tc.html' title='Noto Sans TC - 免費中文網頁字型'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-4696955803562524279</id><published>2017-09-20T07:01:00.001-07:00</published><updated>2017-09-20T07:01:38.336-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="免費中文網頁字型"/><title type='text'>cwTeX - 五款免費中文網頁字型</title><content type='html'>五款免費的網頁用中文字型 (黑體,&amp;nbsp;仿宋體, 楷體, 明體, 圓體)&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;黑體 cwTeXHei&lt;br /&gt;Link&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;@import url(//fonts.googleapis.com/earlyaccess/cwtexhei.css);&lt;/span&gt;&lt;br /&gt;Example&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;font-family: &#39;cwTeXHei&#39;, sans-serif;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;仿宋體 cwTeXFangSong&lt;br /&gt;Link&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;@import url(//fonts.googleapis.com/earlyaccess/cwtexfangsong.css);&lt;/span&gt;&lt;br /&gt;Example&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;font-family: &#39;cwTeXFangSong&#39;, serif;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;楷體 cwTeXKai&lt;br /&gt;Link&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;@import url(//fonts.googleapis.com/earlyaccess/cwtexkai.css);&lt;/span&gt;&lt;br /&gt;Example&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;font-family: &#39;cwTeXKai&#39;, serif;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;明體&amp;nbsp;cwTeXMing&lt;br /&gt;Link&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;@import url(//fonts.googleapis.com/earlyaccess/cwtexming.css);&lt;/span&gt;&lt;br /&gt;Example&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;font-family: &#39;cwTeXMing&#39;, serif;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;圓體 cwTeXYen&lt;br /&gt;Link&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;@import url(//fonts.googleapis.com/earlyaccess/cwtexyen.css);&lt;/span&gt;&lt;br /&gt;
Example&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;font-family: &#39;cwTeXYen&#39;, sans-serif;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/4696955803562524279/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/4696955803562524279' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/4696955803562524279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/4696955803562524279'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/cwtex.html' title='cwTeX - 五款免費中文網頁字型'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-545109494471564891</id><published>2017-09-19T05:44:00.001-07:00</published><updated>2017-09-19T06:03:52.811-07:00</updated><title type='text'>CSS3 的 clip-path：裁剪不規則圖形</title><content type='html'>&lt;span style=&quot;background-color: #fafafa; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 17px;&quot;&gt;CSS3 的 clip-path 可以&lt;/span&gt;&lt;span style=&quot;background-color: #fafafa; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 17px;&quot;&gt;將單一 div 做成多形狀的變化。他是&lt;/span&gt;&lt;span style=&quot;background-color: #fafafa; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 17px;&quot;&gt;利用遮罩 (剪裁) 的方法，連接座標繪製出&lt;/span&gt;&lt;span style=&quot;background-color: #fafafa; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 17px;&quot;&gt;不同形狀&lt;/span&gt;&lt;span style=&quot;background-color: #fafafa; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 17px;&quot;&gt;的&lt;/span&gt;&lt;span style=&quot;background-color: #fafafa; color: #333333; font-family: &amp;quot;arial&amp;quot;; font-size: 17px;&quot;&gt;遮罩區域，讓底色或底圖顯現在區域內。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
W3C 規範 &lt;a href=&quot;https://www.w3.org/TR/css-masking/#the-clip-path&quot;&gt;clip-path&lt;/a&gt; 的語法：&lt;br /&gt;
clip-path: &amp;lt;clip-source&amp;gt; | [ &amp;lt;basic-shape&amp;gt; | | &amp;lt;geometry-box&amp;gt; ] | none&lt;br /&gt;
預設值：none&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
線上繪製不規則形狀遮色片&lt;br /&gt;
網站名稱：CSS clip-path maker&lt;br /&gt;
網站連結：&lt;a href=&quot;http://bennettfeely.com/clippy/&quot;&gt;http://bennettfeely.com/clippy/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/545109494471564891/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/545109494471564891' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/545109494471564891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/545109494471564891'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/css3-clip-path.html' title='CSS3 的 clip-path：裁剪不規則圖形'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-683064192673058694</id><published>2017-09-18T06:29:00.000-07:00</published><updated>2017-09-18T07:58:30.560-07:00</updated><title type='text'>使用 CSS 設定水平置中的方法</title><content type='html'>使用 CSS 設定水平置中，要先把握住兩個部分：&lt;br /&gt;
一個是要置中的元素 (content)，&lt;br /&gt;
另一個則是其父元素 (container)。&lt;br /&gt;
&lt;br /&gt;
網頁元素預設的 display 屬性分為 &lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;inline element&lt;/span&gt;&lt;/b&gt; 和 &lt;b style=&quot;color: #0b5394;&quot;&gt;block-level element &lt;/b&gt;兩種。&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;inline element&lt;/span&gt;&lt;/b&gt; 會自動調整內容大小，不能設定 width、height、margin、background-image...。&lt;br /&gt;如：a、span、img...&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;block&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;-level element&lt;/b&gt;&amp;nbsp;預設佔滿父元素寬度。&lt;br /&gt;如：div、p、ul、li、h1、h2...&lt;/li&gt;
&lt;li&gt;&lt;b style=&quot;color: #0b5394;&quot;&gt;inline-block &lt;/b&gt;具有不換行、會自動調整內容大小，但又可以設定&amp;nbsp;width、height、margin、background-image...。&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
text-align: center;&lt;/h2&gt;
&lt;div&gt;
&lt;h4&gt;
(主要用在 &lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;inline element&lt;/span&gt;&lt;/b&gt;)&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
在父元素設定 text-align: center，裡面所有文字或是 inline element (不管幾層以下) 都會有水平置中的效果！但是 block-level element 並同時設定 width 的元素，則不置中 (但內部的文字或其餘 inline 性質的也會有置中效果）。&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;這時候加上 display: inline-block，讓該元素擁有 inline 特性就可以置中。&lt;/li&gt;
&lt;li&gt;加上該元素的固定寬度 (如：px、%)，並搭配下一步的 margin: 0 auto 也可以達成置中效果。&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h2&gt;
margin: 0 auto;&lt;/h2&gt;
&lt;/div&gt;
&lt;h4&gt;
(主要用在 &lt;span style=&quot;color: #cc0000;&quot;&gt;block-level element&lt;/span&gt;)&lt;/h4&gt;
&lt;div&gt;
&lt;div&gt;
要讓已設定好&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;固定寬度&lt;/b&gt;&lt;/span&gt; (如：px、%) 的&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;區塊&lt;/b&gt;&lt;/span&gt;水平置中，可以在置中元素內設定 margin:0 auto。若是 inline element ，要加上 display: block 後再設定 margin 就能完成置中。&lt;/div&gt;
&lt;div&gt;
※ &lt;u&gt;img 預設為 inline element，需要轉換成 block-level element 才能設定 margin 完成置中&lt;/u&gt;。雖然被歸類在 inline element，但卻是可以直接設定width、height、margin的，唯獨沒辦法配合margin: 0 auto 進行置中。&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;
position: absolute;&lt;br /&gt;left: 50%;&lt;br /&gt;transform: translateX(-50%);&lt;/h2&gt;
(上面一段加在置中元素內，記得在&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;b&gt;父元素&lt;/b&gt;&lt;/span&gt;裡加上 &lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;position: relative;&lt;/b&gt;&lt;/span&gt;。)&lt;br /&gt;
&lt;br /&gt;
* 設定 position: absolute 的元素會自動忽略 static 的元素，並往更上層去找其他非 static 的父元素來定位。因此父元素的 position 必須要是非預設 (default) 的 static 值。(設定為 relative、absolute 或 fixed 都可以)&lt;br /&gt;
* translateX(-50%) 的 50% 是以置中元素為依據。&lt;br /&gt;
* 不論是 inline 還是 block-level，有設定寬度還是沒設定寬度，都可以使用！&lt;br /&gt;
* 同樣的模式也用在垂直置中。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
以下有一個線上的代碼產生器，可以根據你所選擇的條件，整合出適合需要的 CSS 置中範例。&lt;br /&gt;
How to Center in CSS&lt;br /&gt;
&lt;a href=&quot;http://howtocenterincss.com/&quot;&gt;http://howtocenterincss.com/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/683064192673058694/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/683064192673058694' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/683064192673058694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/683064192673058694'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/blog-post_18.html' title='使用 CSS 設定水平置中的方法'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-8315576812236593093</id><published>2017-09-14T13:06:00.003-07:00</published><updated>2017-09-14T13:06:43.883-07:00</updated><title type='text'>太上清靜經-太上老君注解</title><content type='html'>老君曰，&lt;br /&gt;
大道無形，生育天地。大道無情，運行日月。&lt;br /&gt;
大道無名，長養萬物。吾不知其名，強名曰道。&lt;br /&gt;
夫道者，&lt;br /&gt;
有清有濁。有動有靜。天清地濁。天動地靜。&lt;br /&gt;
男清女濁。男動女靜。降本流末。而生萬物。&lt;br /&gt;
清者濁之源。動者靜之基。人能常清靜。天地悉皆歸。&lt;br /&gt;
夫人神好清，而心擾之。人心好靜。而慾牽之。&lt;br /&gt;
常能遣其慾，而心自靜。澄其心，而神自清。&lt;br /&gt;
自然六慾不生，三毒消滅。&lt;br /&gt;
所以不能者，為心未澄，慾未遣也。&lt;br /&gt;
能遣之者，&lt;br /&gt;
內觀其心。心無其心。外觀其形。形無其形。&lt;br /&gt;
遠觀其物。物無其物。三者既悟。惟見於空。&lt;br /&gt;
觀空亦空。空無所空。所空既無，無無亦無，&lt;br /&gt;
無無既無，湛然常寂。寂無所寂，慾豈能生，&lt;br /&gt;
慾既不生。即是真靜。真常應物，真常得性，&lt;br /&gt;
常應常靜，常清靜矣。如此清靜，漸入真道。&lt;br /&gt;
既入真道，名謂得道。雖名得道，實無所得。&lt;br /&gt;
為化眾生。名謂得道。能悟之者，可傳聖道。&lt;br /&gt;
太上老君曰，&lt;br /&gt;
上士無爭，下士好爭。上德不德，下德執德，執著之者，不明道德。&lt;br /&gt;
眾生所以不得真道者，為有妄心。&lt;br /&gt;
既有妄心，即驚其神。既驚其神，即著萬物。&lt;br /&gt;
既著萬物，即生貪求。既生貪求，即是煩惱。&lt;br /&gt;
煩惱妄想，憂苦身心，便遭濁辱。流浪生死。&lt;br /&gt;
常沉苦海，永失真道，真常之道，悟者自得，&lt;br /&gt;
得悟道者，常清靜矣。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
★老君曰　大道無形　生育天地　&lt;br /&gt;
☆天與地之間　看起來　好像就是空的　本來就沒什麼形體可言　可是天與地之間　雖然是沒有形體　卻能生出天地之間的一切:有生命的動物及植物　與無生命的沙土石頭　及許許多多的物體　&lt;br /&gt;
★大道無情　運行日月　&lt;br /&gt;
☆天與地的運轉　本來就沒有什麼感情存在可言　雖然沒什麼感情的存在　但是天與地之間　卻好像是有感情的存在　才使它們不斷的運轉　&lt;br /&gt;
★大道無名　長養萬物　&lt;br /&gt;
☆天與地的空間　它都不知道自己的名字　所以　本來就沒什麼名字可以去稱呼它　可是雖然沒有名字　但是它卻能養育萬物　滋潤萬物　使它們的生命能夠繼續成長　&lt;br /&gt;
★吾不知其名　強名曰　道　&lt;br /&gt;
☆這的確是一個很玄妙的問題　連我(老子)也不知道它的原因　所以也不知道要怎樣去稱呼它　那麼干脆勉強給它取一個名字　叫做道吧　&lt;br /&gt;
★夫道者　&lt;br /&gt;
☆這個道的確太玄妙了　包涵也太廣闊了　為什麼呢　&lt;br /&gt;
★有清有濁　&lt;br /&gt;
☆因為這個道　有時候　有些地方是清清淨淨的　有時候　有些地方就顯得非常污濁　&lt;br /&gt;
★有動有靜　&lt;br /&gt;
☆有時候　有些地方就活動著　有時候　有些地方就靜悄悄的　&lt;br /&gt;
★天清地濁　&lt;br /&gt;
☆像天空是一片清淨的　大地就顯得一片混濁　&lt;br /&gt;
★天動地靜　&lt;br /&gt;
☆像天體的運轉是屬於流動之形　大地的本體是屬於靜止之物　&lt;br /&gt;
★男清女濁　&lt;br /&gt;
☆男人是屬於清陽之體　女人是屬於濁陰之身　&lt;br /&gt;
★男動女靜　&lt;br /&gt;
☆男人是表現外在的　活動的　女人就表現內在的　靜止的　&lt;br /&gt;
★降本流末　而生萬物　&lt;br /&gt;
☆因此　清陽之氣是上升的　濁陰之氣是下降的　如果萬物清陽之氣不能保守那麼萬物的本來靈性便容易下降　萬物本來的靈性如果下降　便失去了本性的主宰　萬物如果失去了本性的主宰　便容易起了情欲之念　思想與行為便自然而然流於下體之末端　萬物的思想與行為如果流於下體之末端　便有陰陽之交合　萬物如果有了陰陽之交合　便自然而生長出種種輪回之萬物來　&lt;br /&gt;
★清者濁之源　&lt;br /&gt;
☆清淨是污濁的源頭　如水源在上游是清淨的　在下游就顯得污濁　&lt;br /&gt;
★動者靜之基　&lt;br /&gt;
☆活動的事物只是清靜的基礎　如一切的建筑物　都是由活動而來的　這就表示出　活動的力量只是靜止的基礎　只有清靜才是萬物的根本之道　&lt;br /&gt;
★人能常清靜　天地悉皆歸　&lt;br /&gt;
☆所以　人如果能夠經常保持清清靜靜　一切天地萬物　就全部歸納在人的本性之中了　這就是學道的根本　可是學道的根本　每個人都忽視了　&lt;br /&gt;
★夫　人神好清　而心擾之　&lt;br /&gt;
☆比如說　人的元神本來是喜好清靜的　可是都被后天的識神給擾亂了　&lt;br /&gt;
★人心好靜　而欲牽之　&lt;br /&gt;
☆人的心性也是一樣　本來也喜歡清靜的　但是都被貪念的欲望牽引去了　&lt;br /&gt;
★常能遣其欲　而心自靜　&lt;br /&gt;
☆因此　一個人如果能夠遣除這些貪念的欲望　人的心性　自然就能夠清淨　&lt;br /&gt;
★澄其心　而神自清　&lt;br /&gt;
☆澄濾這個心性之后　我們的元神　自然能夠清醒　&lt;br /&gt;
★自然六欲不生　三毒消滅　&lt;br /&gt;
☆這樣的話　六種眼耳鼻舌身意　這些所接觸的欲望　自然不會帶來干擾　三種貪妄心　愚痴心　嗔怨心　之毒素也自然而清滅　&lt;br /&gt;
★所以不能者　為心未澄　欲未遣也　&lt;br /&gt;
☆但是有些人就是做不到　這就是這個人的心性　還沒有澄清的關系　所以尚有一些欲望還沒遣除　&lt;br /&gt;
★能遣之者　內觀其心　心無其心　&lt;br /&gt;
☆如果人能夠遣除這些欲望　達到清淨的話　你去觀察你自己的心　連你自己的心　都會感覺沒有了　&lt;br /&gt;
★外觀其形　形無其形　&lt;br /&gt;
☆你再往外看一切形體　這些形體也不是形體了　&lt;br /&gt;
★遠觀其物　物無其物　&lt;br /&gt;
☆就是了望遠處的物體　遠處的物體　也不是什麼物體了　&lt;br /&gt;
★三者既悟　唯見於空　&lt;br /&gt;
☆這三種　心　形　物　都能了悟一切都是虛幻的話　心地就唯有一片空曠　毫無一物了　&lt;br /&gt;
★觀空亦空　空無所空　&lt;br /&gt;
☆能夠這樣的話　看到虛無的天空也是虛幻的　連這個虛幻　都能看破以及看空的話　&lt;br /&gt;
★所空既無　無無亦無　&lt;br /&gt;
☆就是一切都沒有了　既然知道一切都沒有了　心性之中還有什麼可以存在呢&lt;br /&gt;
本來都是一切假相而已　&lt;br /&gt;
★無無既無　湛然常寂　&lt;br /&gt;
☆既然知道一切都是假相的　我們就要連這些假相　都不要執著　連假相都不執著了 就是一片靜止的狀態　&lt;br /&gt;
★寂無所寂　欲豈能生　&lt;br /&gt;
☆心性的靜止達到想要靜止的心　都沒有的時候　欲望怎能夠生出來呢　&lt;br /&gt;
★欲既不生　即是真靜　&lt;br /&gt;
☆能夠達到貪念的欲望　完全不生出來的時候　就是達到真靜的工夫了　&lt;br /&gt;
★真常應物　&lt;br /&gt;
☆心性達到真靜的狀態　然后去應用實行一切事物　自然就是自在自如了　&lt;br /&gt;
★真常得性　&lt;br /&gt;
☆能夠自在自如的人　就是能夠守住真正　常清常靜的人　能夠守住真正　常清常靜的人　他就是已經得到　明自本心　識自本性的人　&lt;br /&gt;
★常應常靜　&lt;br /&gt;
☆能夠達到明自本心　識自本性的人　無論在紛擾的場所　或是在清靜的場所&lt;br /&gt;
他都能時時保持清靜的心　&lt;br /&gt;
★常清靜矣　&lt;br /&gt;
☆能夠經常保持清靜心的人　才是真正清靜之人　&lt;br /&gt;
★如此清靜　漸入真道　&lt;br /&gt;
☆達到真正清靜之人　就是已經漸漸邁入真正的大道了　&lt;br /&gt;
★既入真道　名為得道　&lt;br /&gt;
☆既然邁入真正的大道　就是修道人所稱的　得道　這個名詞　&lt;br /&gt;
★雖名得道　實無所得　&lt;br /&gt;
☆可是雖然稱為　得道　實在是沒有得到什麼　&lt;br /&gt;
★為化眾生　名為得道　&lt;br /&gt;
☆但是為了度化天下迷昧的蒼生　所以才舉個　得道　的名稱　作為他人修道已成的名詞　&lt;br /&gt;
★能悟之者　可傳聖道　&lt;br /&gt;
☆現在我(老子)講到這里　如果你們能夠領悟的人　就可以普傳這個至真至貴的聖賢大道了　&lt;br /&gt;
★老君曰　上士無爭　下士好爭　&lt;br /&gt;
☆所以吾(太上道祖)說　最上等有智慧的人　是沒有爭奪之心的　只有最下等沒有智慧的人　才一天到晚產生貪妄的爭奪心　&lt;br /&gt;
★上德不德　下德執德　&lt;br /&gt;
☆最上等有道德的人　是不說自己有德行的　只有最下等有道德的人　才說自己有德行　因為他是一位頑固執迷的人呀　&lt;br /&gt;
★執著之者　不明道德　&lt;br /&gt;
☆所以　一個頑固執迷的人　會常說自己有德行　但是依我看來　反而是一位不知道什麼叫道德的人　&lt;br /&gt;
★眾生所以不得真道者　為有妄心　&lt;br /&gt;
☆為什麼眾生不能邁入真正的大道呢　就是因為他常常有一顆虛幻的妄想心　&lt;br /&gt;
★既有妄心　即驚其神　&lt;br /&gt;
☆既然有一顆虛幻妄想心　就已經驚擾了他本身的元神了　&lt;br /&gt;
★既驚其神　即著萬物　&lt;br /&gt;
☆既然已經驚擾到他本身的元神　他的元神就貪著一切有形的萬物了　&lt;br /&gt;
★既著萬物　即生貪求　&lt;br /&gt;
☆既然貪著一切有形的萬物　就會產生一些不必要的貪求　&lt;br /&gt;
★既生貪求　即是煩惱　&lt;br /&gt;
☆既然心性產生不必要的貪求　心中就有了邪思妄想的煩惱　&lt;br /&gt;
★煩惱妄想　憂苦身心　&lt;br /&gt;
☆既然心靈中有了邪思妄想的煩惱　就會帶來憂愁的痛苦　既然帶來了憂愁的痛苦　就會擾亂到自己的身心　擾亂自己的身心　自然就會犯下錯誤的行為　&lt;br /&gt;
★便遭濁辱　&lt;br /&gt;
☆既然犯下錯語的行為　就會污辱自己的靈性　既然污辱了自己的靈性　&lt;br /&gt;
★流浪生死　常沉苦海　&lt;br /&gt;
☆就要流浪在生死的輪回中　既然流浪在生死的輪回中　便要沉淪於茫茫苦海　&lt;br /&gt;
★永失真道　&lt;br /&gt;
☆既然沉淪於茫茫苦海　就要永遠失去真正的大道了　&lt;br /&gt;
★真常之道　悟者自得　&lt;br /&gt;
☆而真正長久的大道　是領悟的人　才能得到的呀　不是別人能夠送給你的　&lt;br /&gt;
★得悟道者　常清靜矣　&lt;br /&gt;
☆所以　能夠真正領悟大道的人　簡單一句話來說　就是經常身心保持清靜的人了&lt;br /&gt;
　&lt;br /&gt;
文章出處 &lt;a href=&quot;http://blog.udn.com/god72116/15982200&quot;&gt;http://blog.udn.com/god72116/15982200&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/8315576812236593093/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/8315576812236593093' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/8315576812236593093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/8315576812236593093'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/blog-post.html' title='太上清靜經-太上老君注解'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-2284289902258463615</id><published>2017-09-09T20:39:00.001-07:00</published><updated>2017-09-09T23:25:59.125-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="design"/><category scheme="http://www.blogger.com/atom/ns#" term="設計"/><title type='text'>2017最熱的8個平面設計趨勢</title><content type='html'>摘要：&lt;br /&gt;
2017年你應該知道的平面設計趨勢&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;更鮮艷明亮的顏色（Louder and Brighter Colors）&lt;/li&gt;
&lt;li&gt;醒目的字體（Bold Typography）&lt;/li&gt;
&lt;li&gt;Google字體（Google Fonts）&lt;/li&gt;
&lt;li&gt;真實的照片（Authentic Photos）&lt;/li&gt;
&lt;li&gt;手繪圖形和圖示（Hand-Drawn Graphics and Icons）&lt;/li&gt;
&lt;li&gt;重新認識真正的極簡主義（Minimalism Will Get Back To Its Roots）&lt;/li&gt;
&lt;li&gt;有用的動態圖（Useful GIFs）&lt;/li&gt;
&lt;li&gt;雙色調（Duotones）&lt;/li&gt;
&lt;/ol&gt;
參考網站：&lt;a href=&quot;https://kknews.cc/design/gvzq26l.html&quot; target=&quot;blank&quot;&gt;https://kknews.cc/design/gvzq26l.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/2284289902258463615/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/2284289902258463615' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/2284289902258463615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/2284289902258463615'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/20178.html' title='2017最熱的8個平面設計趨勢'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-2983913345153414359</id><published>2017-09-08T10:20:00.002-07:00</published><updated>2017-09-20T07:38:06.569-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="Pseudo Class"/><category scheme="http://www.blogger.com/atom/ns#" term="Pseudo Element"/><category scheme="http://www.blogger.com/atom/ns#" term="虛擬元素"/><category scheme="http://www.blogger.com/atom/ns#" term="虛擬類別"/><title type='text'>CSS 的虛擬類別 (Pseudo Class) 和虛擬元素 (Pseudo Element)</title><content type='html'>虛擬類別 (Pseudo Class)&amp;nbsp;的執行對象是文件樹中已有的元素，而虛擬元素&amp;nbsp;(Pseudo Element) 則新增了一個文件樹外的元素。兩者的差別在於：有沒有新增一個文件樹外的元素。&lt;br /&gt;
&lt;h2&gt;
虛擬類別 (Pseudo Class)&amp;nbsp;&lt;/h2&gt;
用於向某些&lt;span style=&quot;color: red;&quot;&gt;選擇器&lt;/span&gt;添加特殊的效果，使用一個冒號「:」開頭。&lt;br /&gt;
&lt;h3&gt;
一、錨點虛擬類別&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;:link&lt;/li&gt;
&lt;li&gt;:visited&lt;/li&gt;
&lt;li&gt;:hover&lt;/li&gt;
&lt;li&gt;:active&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
二、狀態虛擬類別&lt;/h3&gt;
:checked、unchecked、:enabled、:disabled&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
三、-child&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;:first-child：第一個子元素&lt;/li&gt;
&lt;li&gt;:last-child：最後一個子元素&lt;/li&gt;
&lt;li&gt;:nth-child(數字)：第幾個子元素 (從 1 數起，不是從 0)&lt;/li&gt;
&lt;li&gt;:nth-child(2n)：偶數的子元素 (2 的倍數)&lt;/li&gt;
&lt;li&gt;:nth-child(2n+1)：奇數的子元素&lt;/li&gt;
&lt;li&gt;:nth-last-child(數字)：從後面數來第幾個子元素&lt;/li&gt;
&lt;li&gt;:only-child：父元素內只有一個子元素&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
四、&lt;b&gt;-of-type&lt;/b&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;:first-of-type：同一種元素的第一個&lt;/li&gt;
&lt;li&gt;:last-of-type：同一種元素的最後一個&lt;/li&gt;
&lt;li&gt;:nth-of-type(數字)：同一種元素裏頭的第幾個&lt;/li&gt;
&lt;li&gt;:nth-last-of-type(數字)：同一種元素從後面屬過來第幾個&lt;/li&gt;
&lt;li&gt;:only-of-type：只有這種元素&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
虛擬元素 (Pseudo Element)&lt;/h2&gt;
用於將特殊的效果添加到某些&lt;span style=&quot;color: red;&quot;&gt;選擇&lt;/span&gt;，使用兩個冒號「::」開頭。虛擬元素和真實元素一樣，我們可以把它當做 HTML 中常用的元素來使用，但它只能利用 CSS 來產生，而且並不在文件樹中，所以無法對他們進行分類。&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
::before (:before)&lt;/h3&gt;
在原本的元素「之前」加入內容，以 &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;display:inline-block&lt;/span&gt;&lt;/b&gt; 的屬性存在。&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
::after(:after)&lt;/h3&gt;
在原本的元素「之後」加入內容，以 &lt;b&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;display:inline-block&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&lt;/span&gt;的屬性存在。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;※ ::before (:before) 與 ::after (:after) 一定要&lt;a href=&quot;https://dtgunexpectedly.blogspot.tw/2017/09/content.html&quot;&gt;具備 content 的屬性&lt;/a&gt;。&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
::first-line (:first-line)&lt;/h3&gt;
&lt;br /&gt;
&lt;h3&gt;
::first-letter (:first-letter)&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;
::cue (:cue)&lt;/h3&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;
::selection&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
::backdrop&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
::placeholder&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
::marker&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;
::spelling-error&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
::grammar-error&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/2983913345153414359/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/2983913345153414359' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/2983913345153414359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/2983913345153414359'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/css-pseudo-class-pseudo-element.html' title='CSS 的虛擬類別 (Pseudo Class) 和虛擬元素 (Pseudo Element)'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-8200733823174305210</id><published>2017-09-08T10:08:00.003-07:00</published><updated>2017-09-20T07:38:34.318-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pseudo Element"/><category scheme="http://www.blogger.com/atom/ns#" term="虛擬元素"/><title type='text'>虛擬元素一定要具備的 content 屬性</title><content type='html'>&lt;h3&gt;
一、虛擬元素 (Pseudo Element) 一定要具備 content 屬性&lt;/h3&gt;
沒有 content 屬性是不會在畫面上顯示任何東西的，就算是只有 content:&quot;&quot;; 都可以。&lt;br /&gt;
&lt;br /&gt;
HTML:&lt;br /&gt;
&amp;lt;a href=&quot;https://dtgunexpectedly.blogspot.tw/&quot; target=&quot;_blank&quot;&amp;gt;呆頭豬的雲&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CSS:&lt;br /&gt;
a::before{&lt;br /&gt;
&amp;nbsp; content: &lt;span style=&quot;color: #cc0000;&quot;&gt;attr(href)&lt;/span&gt;; /* 將超連結的 href 內容顯示在前面 */&lt;br /&gt;
}&lt;br /&gt;
a::after{&lt;br /&gt;
&amp;nbsp; content:&lt;span style=&quot;color: #cc0000;&quot;&gt; attr(target)&lt;/span&gt;; /* 將超連結的 target 內容顯示在後面 */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
結果:&lt;br /&gt;
https://dtgunexpectedly.blogspot.tw/呆頭豬的雲_blank&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
二、content 內容用一個&lt;span style=&quot;color: red;&quot;&gt;空白鍵&lt;/span&gt;就可以不斷「相連累加」&lt;/h3&gt;
HTML:&lt;br /&gt;
&amp;lt;a href=&quot;https://dtgunexpectedly.blogspot.tw/&quot; target=&quot;_blank&quot;&amp;gt;呆頭豬的雲&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CSS:&lt;br /&gt;
a::before{&lt;br /&gt;
&amp;nbsp; content: &quot;( &quot; attr(href) &quot; ) &quot; &quot; ( &quot; attr(target) &quot; ) &quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
結果:&lt;br /&gt;
( https://dtgunexpectedly.blogspot.tw/ ) &amp;nbsp;( _blank ) 呆頭豬的雲&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
三、content 可以使用 url 放入圖片&lt;/h3&gt;
CSS:&lt;br /&gt;
div::before{&lt;br /&gt;
&amp;nbsp; content:&lt;span style=&quot;color: #cc0000;&quot;&gt;url(圖片網址) url(圖片網址)&lt;/span&gt;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
四、content 搭配 quotes 使用&lt;/h3&gt;
&lt;div&gt;
quotes 為定義「括號格式」的屬性。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
HTML:&lt;/div&gt;
&lt;div&gt;
最外層&amp;lt;q&amp;gt;第一層&amp;lt;q&amp;gt;第二層&amp;lt;/q&amp;gt;&amp;lt;q&amp;gt;第二層&amp;lt;q&amp;gt;第三層&amp;lt;/q&amp;gt;&amp;lt;/q&amp;gt;&amp;lt;/q&amp;gt;。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
CSS:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
q{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; quotes: &#39; &amp;lt; &#39; &#39; &amp;gt; &#39;;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
結果:&lt;/div&gt;
&lt;div&gt;
最外層&amp;lt;第一層&amp;lt;第二層&amp;gt;&amp;lt;第二層&amp;lt;第三層&amp;gt;&amp;gt;&amp;gt;。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
HTML:&lt;/div&gt;
&lt;div&gt;
最外層&amp;lt;q&amp;gt;第一層&amp;lt;q&amp;gt;第二層&amp;lt;/q&amp;gt;&amp;lt;q&amp;gt;第二層&amp;lt;q&amp;gt;第三層&amp;lt;/q&amp;gt;&amp;lt;/q&amp;gt;&amp;lt;/q&amp;gt;。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
CSS:&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
q{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; quotes: &#39; &amp;lt; &#39; &#39; &amp;gt; &#39; &#39; [ &#39; &#39; ] &#39; &#39; ( &#39; &#39; ) &#39; ;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
結果:&lt;/div&gt;
&lt;div&gt;
最外層&amp;lt;第一層[第二層][第二層(第三層)]&amp;gt;。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
HTML:&lt;/div&gt;
&lt;div&gt;
最外層&amp;lt;q&amp;gt;第一層&amp;lt;q&amp;gt;第二層&amp;lt;/q&amp;gt;&amp;lt;q&amp;gt;第二層&amp;lt;q&amp;gt;第三層&amp;lt;/q&amp;gt;&amp;lt;/q&amp;gt;&amp;lt;/q&amp;gt;。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
CSS:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
span{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; quotes: &#39; &amp;lt; &#39; &#39; &amp;gt; &#39; &#39; [ &#39; &#39; ] &#39; &#39; ( &#39; &#39; ) &#39; ;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
span::before{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; content:open-quote; /* 啟始括號&amp;nbsp;*/&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; color:red;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
span::after{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; content:close-quote; /*&amp;nbsp;結束括號 */&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; color:#aaa;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
結果:&lt;/div&gt;
&lt;div&gt;
最外層&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;&lt;/span&gt;第一層&lt;span style=&quot;color: red;&quot;&gt;[&lt;/span&gt;第二層&lt;span style=&quot;color: #999999;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;[&lt;/span&gt;第二層&lt;span style=&quot;color: red;&quot;&gt;(&lt;/span&gt;第三層&lt;span style=&quot;color: #999999;&quot;&gt;)]&amp;gt;&lt;/span&gt;。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/8200733823174305210/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/8200733823174305210' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/8200733823174305210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/8200733823174305210'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/content.html' title='虛擬元素一定要具備的 content 屬性'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-3742997543638534859</id><published>2017-09-07T17:15:00.001-07:00</published><updated>2017-09-09T23:27:34.313-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="線上工具"/><title type='text'>線上 CSS 三角形產生器</title><content type='html'>一個好用的三角形 CSS 產生器&lt;br /&gt;
&lt;a href=&quot;http://apps.eky.hk/css-triangle-generator/zh-hant&quot;&gt;http://apps.eky.hk/css-triangle-generator/zh-hant&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/3742997543638534859/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/3742997543638534859' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/3742997543638534859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/3742997543638534859'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/css_7.html' title='線上 CSS 三角形產生器'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-5189061539761094394</id><published>2017-09-06T17:50:00.002-07:00</published><updated>2017-09-14T14:32:24.040-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><title type='text'>margin 屬性</title><content type='html'>margin 是設定物件上下左右留白的屬性，依順時鐘方向對上、右、下、左四個方向指定數值。&lt;br /&gt;
&lt;br /&gt;
margin: 10px; &amp;nbsp;(上下左右各留白 10px)&lt;br /&gt;
margin: 10px 20px; &amp;nbsp;(上下留白 10px、左右留白 20px)&lt;br /&gt;
margin: 10px 20px &amp;nbsp;30px; &amp;nbsp;(上留白 10px、左右留白 20px、下留白 30px)&lt;br /&gt;
margin: &amp;nbsp;10px &amp;nbsp;20px &amp;nbsp;30px &amp;nbsp;40px; &amp;nbsp;(上留白 10px、右留白 20px、下留白 30px、左留白 40px)&lt;br /&gt;
&lt;br /&gt;
也可以用 margin-top、margin-bottom、margin-left、margin-right &amp;nbsp;指定上、下、左、右的留白。指定的值可以為 auto、數值或單位，也可以用負數(負邊距 negative margin)。&lt;br /&gt;
&lt;br /&gt;
要將區塊層級 (block level，如 div) &amp;nbsp;元件相對於父元件，設定左右置中，可以將元件的左右 &amp;nbsp;margin &amp;nbsp;設為 &amp;nbsp;auto。&lt;br /&gt;
&lt;br /&gt;
※ &amp;nbsp;要注意，&lt;a href=&quot;https://dtgunexpectedly.blogspot.tw/2017/09/margin.html&quot; style=&quot;border-bottom: 1px solid #cc0000;&quot;&gt;相鄰的留白會互相抵消&lt;/a&gt;。如兩個 margin &amp;nbsp;為 20px &amp;nbsp;的元件相鄰排列，元件間距會是 20px，而不是 40px。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/5189061539761094394/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/5189061539761094394' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/5189061539761094394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/5189061539761094394'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/margin_6.html' title='margin 屬性'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-5379692957407831250</id><published>2017-09-06T09:12:00.000-07:00</published><updated>2017-09-06T17:55:08.545-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jQuery plugin"/><category scheme="http://www.blogger.com/atom/ns#" term="多層級收合式選單"/><title type='text'>多層級收合式選單 Multi-level Accordion</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCxoEapuiyIAX-cc4nTxGMR0PqcRAwHg4Xjl9ylwmFMMnmrGr2v1XU_NY4R4C6VSsx5Zhm0QPjC2r5R8DlbwGcrlnKQb6-CyUjVvLSUcbMUn2Lln3n3Qcg5vNixraoR0r9H4k2Y59Jp0I/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D-1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;619&quot; data-original-width=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCxoEapuiyIAX-cc4nTxGMR0PqcRAwHg4Xjl9ylwmFMMnmrGr2v1XU_NY4R4C6VSsx5Zhm0QPjC2r5R8DlbwGcrlnKQb6-CyUjVvLSUcbMUn2Lln3n3Qcg5vNixraoR0r9H4k2Y59Jp0I/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D-1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
CSS:&lt;br /&gt;
&amp;lt;link href=&#39;https://fonts.googleapis.com/css?family=News+Cycle:400,700&#39; rel=&#39;stylesheet&#39; type=&#39;text/css&#39;&amp;gt;&lt;br /&gt;
&amp;lt;link href=&quot;https://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&amp;gt;&lt;br /&gt;
&amp;lt;style&amp;gt;&lt;br /&gt;
* { margin:0; padding:0; }&lt;br /&gt;
body { font-size:100%; }&lt;br /&gt;
.accordion { width:380px; margin:20px auto; }&lt;br /&gt;
.accordion h1, h2, h3, h4 { cursor:pointer; }&lt;br /&gt;
.accordion h2, h3, h4 { font-family:&quot;News Cycle&quot;; }&lt;br /&gt;
.accordion h1 { padding:15px 20px; background-color:#333; font-family:Lobster; font-size:1.5rem; font-weight: normal; color:#1abc9c; }&lt;br /&gt;
.accordion h1:hover { color:#4afcdc; }&lt;br /&gt;
.accordion h1:first-child { border-radius:10px 10px 0 0; }&lt;br /&gt;
.accordion h1:last-of-type { border-radius:0 0 10px 10px; }&lt;br /&gt;
.accordion h1:not(:last-of-type) { border-bottom:1px dotted #1abc9c; }&lt;br /&gt;
.accordion div, .accordion p { display:none; }&lt;br /&gt;
.accordion h2 { padding:5px 25px; background-color:#1abc9c; font-size:1.1rem; color:#333; }&lt;br /&gt;
.accordion h2:hover { background-color:#09ab8b; }&lt;br /&gt;
.accordion h3 { padding:5px 30px; background-color:#b94152; font-size:.9rem; color:#ddd; }&lt;br /&gt;
.accordion h3:hover { background-color:#a93142; }&lt;br /&gt;
.accordion h4 { padding:5px 35px; background-color:#ffc25a; font-size:.9rem; color:#af720a; }&lt;br /&gt;
.accordion h4:hover { background-color:#e0b040; }&lt;br /&gt;
.accordion p { padding:15px 35px; background-color:#ddd; font-family:&quot;Georgia&quot;; font-size:.8rem; color:#333; line-height:1.3rem; }&lt;br /&gt;
.accordion .opened-for-codepen { display:block; }&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&lt;br /&gt;
HTML:&lt;br /&gt;
&amp;lt;aside class=&quot;accordion&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;News&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;opened-for-codepen&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;News Item #1&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;opened-for-codepen&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;News Item #1a&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;h4&amp;gt;News Subitem 1&amp;lt;/h4&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h4&amp;gt;News Subitem 2&amp;lt;/h4&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h4&amp;gt;News Subitem 3&amp;lt;/h4&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;News Item #1b&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;News Item #1c&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;div class=&quot;opened-for-codepen&quot;&amp;gt;&lt;br /&gt;
&amp;lt;h4&amp;gt;News Subitem 1&amp;lt;/h4&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h4&amp;gt;News Subitem 2&amp;lt;/h4&amp;gt;&lt;br /&gt;
&amp;lt;p class=&quot;opened-for-codepen&quot;&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;News Item #2&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;News Item #3&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;News Item #3a&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;News Item #3b&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Updates&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Update #1&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Update #2&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Update #3&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Update #4&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Miscellaneous&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Misc. #1&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Misc. #2&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Misc. #3&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Misc. Item #1a&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;h4&amp;gt;Misc. Subitem 1&amp;lt;/h4&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h4&amp;gt;Misc. Subitem 2&amp;lt;/h4&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h4&amp;gt;Misc. Subitem 3&amp;lt;/h4&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;Misc. Item #2a&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
&amp;lt;h4&amp;gt;Misc. Subitem 1&amp;lt;/h4&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;h4&amp;gt;Misc. Subitem 2&amp;lt;/h4&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/aside&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JS:&lt;br /&gt;
&amp;lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
var headers = [&quot;H1&quot;,&quot;H2&quot;,&quot;H3&quot;,&quot;H4&quot;,&quot;H5&quot;,&quot;H6&quot;];&lt;br /&gt;
&lt;br /&gt;
$(&quot;.accordion&quot;).click(function(e) {&lt;br /&gt;
var target = e.target,&lt;br /&gt;
name = target.nodeName.toUpperCase();&lt;br /&gt;
&lt;br /&gt;
if($.inArray(name,headers) &amp;gt; -1) {&lt;br /&gt;
var subItem = $(target).next();&lt;br /&gt;
&lt;br /&gt;
//slideUp all elements (except target) at current depth or greater&lt;br /&gt;
var depth = $(subItem).parents().length;&lt;br /&gt;
var allAtDepth = $(&quot;.accordion p, .accordion div&quot;).filter(function() {&lt;br /&gt;
if($(this).parents().length &amp;gt;= depth &amp;amp;&amp;amp; this !== subItem.get(0)) {&lt;br /&gt;
return true;&lt;br /&gt;
}&lt;br /&gt;
});&lt;br /&gt;
$(allAtDepth).slideUp(&quot;fast&quot;);&lt;br /&gt;
//slideToggle target content and adjust bottom border if necessary&lt;br /&gt;
subItem.slideToggle(&quot;fast&quot;,function() {&lt;br /&gt;
$(&quot;.accordion :visible:last&quot;).css(&quot;border-radius&quot;,&quot;0 0 10px 10px&quot;);&lt;br /&gt;
});&lt;br /&gt;
$(target).css({&quot;border-bottom-right-radius&quot;:&quot;0&quot;, &quot;border-bottom-left-radius&quot;:&quot;0&quot;});&lt;br /&gt;
}&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
整理資料來自: &lt;a href=&quot;https://codepen.io/rbobrowski/pen/likvA&quot;&gt;https://codepen.io/rbobrowski/pen/likvA&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/5379692957407831250/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/5379692957407831250' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/5379692957407831250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/5379692957407831250'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/multi-level-accordion.html' title='多層級收合式選單 Multi-level Accordion'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCxoEapuiyIAX-cc4nTxGMR0PqcRAwHg4Xjl9ylwmFMMnmrGr2v1XU_NY4R4C6VSsx5Zhm0QPjC2r5R8DlbwGcrlnKQb6-CyUjVvLSUcbMUn2Lln3n3Qcg5vNixraoR0r9H4k2Y59Jp0I/s72-c/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D-1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-3591083949473275111</id><published>2017-09-05T07:47:00.000-07:00</published><updated>2017-09-06T17:56:27.475-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="漸層背景"/><category scheme="http://www.blogger.com/atom/ns#" term="線上工具"/><title type='text'>線上漸層背景效果的 CSS 碼產生器</title><content type='html'>&lt;span style=&quot;background-color: white; color: rgba(0 , 0 , 0 , 0.87); font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; white-space: pre-wrap;&quot;&gt;線上非常好用的漸層效果 CSS 碼產生器，使用方式和 Photoshop 的漸層工具操作相似。&lt;/span&gt;&lt;br /&gt;
&lt;a class=&quot;ot-anchor aaTEdf&quot; dir=&quot;ltr&quot; href=&quot;http://www.colorzilla.com/gradient-editor/&quot; jslog=&quot;10929; track:click&quot; rel=&quot;nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; background-color: white; color: #2962ff; font-family: Roboto, RobotoDraft, Helvetica, Arial, sans-serif; font-size: 14px; text-decoration-line: none; white-space: pre-wrap;&quot; target=&quot;_blank&quot;&gt;http://www.colorzilla.com/gradient-editor/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/3591083949473275111/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/3591083949473275111' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/3591083949473275111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/3591083949473275111'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/css.html' title='線上漸層背景效果的 CSS 碼產生器'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-1475775930490758441</id><published>2017-09-04T15:08:00.004-07:00</published><updated>2017-09-14T14:31:12.634-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><title type='text'>CSS 語法 margin 的互相抵消(Collapsing margins)</title><content type='html'>&lt;br /&gt;
CSS 語法的 margin 在區塊層級 (block level) 元件之間，他的上下 margin 會互相抵消，而在行內層級元件 (display: inline-block;) 或是與 float 相關的元件則不會發生這樣的情形，W3C 稱之為「&lt;a href=&quot;https://www.w3.org/TR/CSS21/box.html#collapsing-margins&quot;&gt;&lt;span style=&quot;color: #cc0000; border-bottom: 1px solid #cc0000;&quot;&gt;Collapsing margins&lt;/span&gt;&lt;/a&gt;」。&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
相鄰的 margin 互相抵消：&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;HTML:&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS:&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;.box {&lt;br /&gt;&amp;nbsp; margin:20px;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUpRxf7eCm071vZojLpTVmbdWqSXcScxO3N9SAp0S5pkyHy_FXMmfRCke2ObIScftsvUaUMqireOptaLTMpnrlvqNd1vL0D5yd-YGFr3utx42tRrbMc5dpIyUIgzErRp8VbX8KVkNDjjk/s1600/margin01.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;179&quot; data-original-width=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUpRxf7eCm071vZojLpTVmbdWqSXcScxO3N9SAp0S5pkyHy_FXMmfRCke2ObIScftsvUaUMqireOptaLTMpnrlvqNd1vL0D5yd-YGFr3utx42tRrbMc5dpIyUIgzErRp8VbX8KVkNDjjk/s1600/margin01.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;/li&gt;
&lt;li&gt;HTML:&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;lt;div class=&quot;box&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div class=&quot;box-large&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CSS:&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;.box {&lt;br /&gt;&amp;nbsp; margin:20px;&lt;br /&gt;}&lt;br /&gt;.box-large {&lt;br /&gt;&amp;nbsp; margin:30px;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCcR26h0wRnd_dfh8b3y0w8j1ttquhrFgbahM8nJ6iGLq5BRMclZMbG2lyLOMwI6co39b3l1x97-C_mV6RGAuUV-6zVSeDbxCEaQbWZhJjdpdx6a8vviG396ShYyUbsTG8qTnQ-8sG0wQ/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D-1.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;209&quot; data-original-width=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCcR26h0wRnd_dfh8b3y0w8j1ttquhrFgbahM8nJ6iGLq5BRMclZMbG2lyLOMwI6co39b3l1x97-C_mV6RGAuUV-6zVSeDbxCEaQbWZhJjdpdx6a8vviG396ShYyUbsTG8qTnQ-8sG0wQ/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D-1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
子元件的 margin 互相抵消&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
HTML:&lt;/div&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;lt;div class=&quot;parent&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp; &amp;lt;div class=&quot;child&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
CSS:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;.parent {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp; width:200px;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp; height:100px;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;.child {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp; width:66%;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp; height:50%;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&amp;nbsp; margin-top:20px;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn1b2PJJew3xUYrc0tTeHNvwNIMeFEUo51Ma86v4iFWXaSaWAcvPFHb6JbisPQwrFwFBOLnZMvIcxDVcepjX6pJFsHiQCsHW2TknOtW2HU5zvI6CQM5Ih_b7j3LGInoAw5ZEVdRb8mJt8/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D-1.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;150&quot; data-original-width=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn1b2PJJew3xUYrc0tTeHNvwNIMeFEUo51Ma86v4iFWXaSaWAcvPFHb6JbisPQwrFwFBOLnZMvIcxDVcepjX6pJFsHiQCsHW2TknOtW2HU5zvI6CQM5Ih_b7j3LGInoAw5ZEVdRb8mJt8/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D-1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2 style=&quot;clear: both;&quot;&gt;
Collapsing margins 解決方案&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
要處理這種互相抵消的情況，可以使用 &lt;span style=&quot;color: #cc0000;&quot;&gt;padding&lt;/span&gt;、&lt;span style=&quot;color: #cc0000;&quot;&gt;border&lt;/span&gt;、&lt;span style=&quot;color: #cc0000;&quot;&gt;inline-block&lt;/span&gt; 及 &lt;span style=&quot;color: #cc0000;&quot;&gt;float&lt;/span&gt; 內容來做區分。&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;透過外元素的 padding&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;.parent {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;padding-top: 1px;&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDcR3JcAOAassGczLjksaEuvoYZKdccshgsCaYcTDmcJzmXFQzJTIHIND2Ou7I2xMbwQKVr1tYPWJdOpG_WAB-lU3oHhC8At4WeHxEZKxvFRp9JOy04nj5WMTrhoGaeAfCdUKSfi_BQSc/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D-2.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;130&quot; data-original-width=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDcR3JcAOAassGczLjksaEuvoYZKdccshgsCaYcTDmcJzmXFQzJTIHIND2Ou7I2xMbwQKVr1tYPWJdOpG_WAB-lU3oHhC8At4WeHxEZKxvFRp9JOy04nj5WMTrhoGaeAfCdUKSfi_BQSc/s1600/%25E6%259C%25AA%25E5%2591%25BD%25E5%2590%258D-2.jpg&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;外元素加入 border&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;.parent {&lt;br /&gt;&amp;nbsp; border: 1px solid #fff;&lt;br /&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;內元素更改屬性 (inline-block)&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;.child {&lt;br /&gt;&amp;nbsp; display: inline-block;&lt;br /&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;內元素更改屬性 (float)&lt;br /&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;.child{&lt;br /&gt;&amp;nbsp; float: left;&lt;br /&gt;}&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/1475775930490758441/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/1475775930490758441' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/1475775930490758441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/1475775930490758441'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/margin.html' title='CSS 語法 margin 的互相抵消(Collapsing margins)'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUpRxf7eCm071vZojLpTVmbdWqSXcScxO3N9SAp0S5pkyHy_FXMmfRCke2ObIScftsvUaUMqireOptaLTMpnrlvqNd1vL0D5yd-YGFr3utx42tRrbMc5dpIyUIgzErRp8VbX8KVkNDjjk/s72-c/margin01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-662131377948946725</id><published>2017-09-01T19:37:00.000-07:00</published><updated>2017-09-02T19:12:50.050-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="Flexbox"/><title type='text'>更加彈性的 CSS3 精靈盒子 - Flexbox</title><content type='html'>&lt;h2&gt;
Flexbox 的屬性:&lt;/h2&gt;
&lt;h3&gt;
1. display&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;display:flex (類似 display:block)&lt;/li&gt;
&lt;li&gt;display:inline-flex (類似 display:inline-block)&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisk2w7pX4EHkDZJGFxIqqutvmi8fiRQUxQxnbppmA_lvcPLKBSA4qCpmFvZntBPUeFeMXtKHklJNKxDRIA6pkSS_YbiFCoXD-N0-EHaQLXHbKIqwfanCEXURaW7noOmMUDCVWdPUKVGn0/s1600/001.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;180&quot; data-original-width=&quot;235&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisk2w7pX4EHkDZJGFxIqqutvmi8fiRQUxQxnbppmA_lvcPLKBSA4qCpmFvZntBPUeFeMXtKHklJNKxDRIA6pkSS_YbiFCoXD-N0-EHaQLXHbKIqwfanCEXURaW7noOmMUDCVWdPUKVGn0/s1600/001.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
2. flex-direction&lt;/h3&gt;
Flexbox 內容元素的「排列方向」，有四種--&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;row(預設值)：由左到右，從上到下&lt;/li&gt;
&lt;li&gt;row-reverse(與 row 相反)：由右到左，從上到下&lt;/li&gt;
&lt;li&gt;column：從上到下，再由左到右&lt;/li&gt;
&lt;li&gt;column-reverse(與 column 相反)：從下到上，再由左到右&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpvXvOeL0fu3YMUf7VRp_-Qqm1l8TGC8cjV40P7v5xeGIgVVOgyj3htXYrZ34FE_9lxtZBxf2PZ3tLB6NzyJYXRS_QKHhyphenhyphenZEQg9j8a5GvmMFxzVIBOrk8OuDUQMtU4eBjfsJs955EJR6s/s1600/002.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;203&quot; data-original-width=&quot;584&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpvXvOeL0fu3YMUf7VRp_-Qqm1l8TGC8cjV40P7v5xeGIgVVOgyj3htXYrZ34FE_9lxtZBxf2PZ3tLB6NzyJYXRS_QKHhyphenhyphenZEQg9j8a5GvmMFxzVIBOrk8OuDUQMtU4eBjfsJs955EJR6s/s1600/002.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
3. justify-content&lt;/h3&gt;
決定內容元素與整個 Flexbox 的「水平對齊」位置&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;flex-start(預設值)：對齊最左邊&lt;/li&gt;
&lt;li&gt;flex-end：對齊最右邊&lt;/li&gt;
&lt;li&gt;center：水平置中&lt;/li&gt;
&lt;li&gt;space-between：平均分配內容元素，左右元素將會與最左邊和最右邊貼齊&lt;/li&gt;
&lt;li&gt;space-around：平均分配內容元素，間距也是平均分配&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQj4rWPwDJC7H3EJ9LKqZfcMkLfg-dWiysmNA45vKUXwUMMXF0uHe6KLp5dBOLEF8CWgQdXoTwXua1vE3NSunfMuvD9H6j_IJQ_Nw0un-tQRrDCtGC3gIUHnULaF4dBth5b4oL7ufkTAc/s1600/003.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;457&quot; data-original-width=&quot;535&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQj4rWPwDJC7H3EJ9LKqZfcMkLfg-dWiysmNA45vKUXwUMMXF0uHe6KLp5dBOLEF8CWgQdXoTwXua1vE3NSunfMuvD9H6j_IJQ_Nw0un-tQRrDCtGC3gIUHnULaF4dBth5b4oL7ufkTAc/s1600/003.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
4. align-items&lt;/h3&gt;
決定內容元素與整個 Flexbox 的「垂直對齊」位置&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;flex-start(預設值)：對齊最上面&lt;/li&gt;
&lt;li&gt;flex-end：對齊最下面&lt;/li&gt;
&lt;li&gt;center：垂直置中&lt;/li&gt;
&lt;li&gt;stretch：將內容元素全部撐開至 Flexbox 的高度&lt;/li&gt;
&lt;li&gt;baseline：以所有內容元素的基線作為對齊標準&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaX7DwdOVGRhjoaNwfFLyYjzcZPiDnBOfDWdMz7ZKspDWv92sylUQGtZzLrSWW6i_VlrjETnzgwuNMkjW3n-_Biy5l0uW-XXXb-tBxnwdhdgvjn5vOaZ6CpZ_KiPV08QYAjDtL7_uZYQo/s1600/004.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;220&quot; data-original-width=&quot;637&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaX7DwdOVGRhjoaNwfFLyYjzcZPiDnBOfDWdMz7ZKspDWv92sylUQGtZzLrSWW6i_VlrjETnzgwuNMkjW3n-_Biy5l0uW-XXXb-tBxnwdhdgvjn5vOaZ6CpZ_KiPV08QYAjDtL7_uZYQo/s1600/004.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
5. align-self&lt;/h3&gt;
設定與 align-items 相同，但 align-self 的作用在於覆寫已經套用 align-items 的屬性&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHf7QVlyKqlgs0_NPmumSqKB-YFr0sskdXK0Y_Yhk-ctHpG-Ncr_UfkIWmyK6EyMehzeMGGnRJB_0levLqnNrULPkaKWoC-FHMHp-knWNJ-e7XSbi3MrVUWzZETiDinzRFEy0-8wzAekY/s1600/005.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;194&quot; data-original-width=&quot;643&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHf7QVlyKqlgs0_NPmumSqKB-YFr0sskdXK0Y_Yhk-ctHpG-Ncr_UfkIWmyK6EyMehzeMGGnRJB_0levLqnNrULPkaKWoC-FHMHp-knWNJ-e7XSbi3MrVUWzZETiDinzRFEy0-8wzAekY/s1600/005.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;/ol&gt;
&lt;h3&gt;
6. align-content&lt;/h3&gt;
align-items 是針對內容為單行的元素進行處理&lt;br /&gt;
align-content 是針對內容為多行的元素&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;flex-start(預設值)：對齊最上面&lt;/li&gt;
&lt;li&gt;flex-end：對齊最下面&lt;/li&gt;
&lt;li&gt;center：垂直置中&lt;/li&gt;
&lt;li&gt;space-between：將第一行與最後一行分別對齊最上方與最下方&lt;/li&gt;
&lt;li&gt;space-around：每行平均分配間距&lt;/li&gt;
&lt;li&gt;stretch：內容元素全部撐開&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8A9DZOk2WqT_FhTAMyif0CH9Q__YC3vMxhQTpP_AdSRaoRMwT57OCk_Q_8Rlq1ozHIowy12JtEJ_WrurbnMNeg1hDQSJ64lpy7wuP_1oX6uo3GKHT2BhgKcaFZP2YLKg2Z-qqI4MLPZU/s1600/006.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;461&quot; data-original-width=&quot;646&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8A9DZOk2WqT_FhTAMyif0CH9Q__YC3vMxhQTpP_AdSRaoRMwT57OCk_Q_8Rlq1ozHIowy12JtEJ_WrurbnMNeg1hDQSJ64lpy7wuP_1oX6uo3GKHT2BhgKcaFZP2YLKg2Z-qqI4MLPZU/s1600/006.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
7. flex-wrap&lt;/h3&gt;
&lt;h3&gt;
&lt;/h3&gt;
display 設定為 flex 或 inline-flex 的時候，子元素就是以單行的方式，彈性撐滿父元素，所以就要利用 flex-wrap 來換行&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;nowrap(預設值)：單行&lt;/li&gt;
&lt;li&gt;wrap：多行&lt;/li&gt;
&lt;li&gt;wrap-reverse：多行，但內容元素反轉&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPfwQfJZd3W5EWGoUvd-M1A1WR2PCNUv6JIkBGtz2bi2VstcnmE2IFI0Bya7NzcAXBhF2NDgGmkQUbr1QdYxoYtKtvcOXVfghHmoyjuNrVP9iY7JVk33-py6r7MKZrFYSv24mjM3djVLw/s1600/007.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;409&quot; data-original-width=&quot;649&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPfwQfJZd3W5EWGoUvd-M1A1WR2PCNUv6JIkBGtz2bi2VstcnmE2IFI0Bya7NzcAXBhF2NDgGmkQUbr1QdYxoYtKtvcOXVfghHmoyjuNrVP9iY7JVk33-py6r7MKZrFYSv24mjM3djVLw/s1600/007.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
8. order&lt;/h3&gt;
&lt;h3&gt;
&lt;/h3&gt;
直接指定一個數字，由小到大的排列順序&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRf9EQqzEO2b5DZ8HOy3BwOfi1-SeYqsLLXw3nwAiFhDKiKJfTzlloGnoDc4QT_B5yjEiPwa7e-rLwWtF1egRtbTPL4nQP1YccBJN-Ng-yZraNlOKJQDF1mwTwsyC5ckjdsu0EheSPqZA/s1600/008.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;136&quot; data-original-width=&quot;259&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRf9EQqzEO2b5DZ8HOy3BwOfi1-SeYqsLLXw3nwAiFhDKiKJfTzlloGnoDc4QT_B5yjEiPwa7e-rLwWtF1egRtbTPL4nQP1YccBJN-Ng-yZraNlOKJQDF1mwTwsyC5ckjdsu0EheSPqZA/s1600/008.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
*9. flex&lt;/h3&gt;
由三個屬性組合而成，依序是「flex-grow」、「flex-shrink」和「flex-basis」，如果 flex 只填了一個數值 ( 無單位 )，那麼預設就是以 flex-grow 的方式呈現&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;flex-grow：數字，無單位，當子元素的 flex-basis 長度「小」於它自己在父元素分配到的長度，按照數字做相對應的「伸展」比例分配，預設值為 1，設為 0 的話不會進行彈性變化，不可為負值。&lt;/li&gt;
&lt;li&gt;flex-shrink：數字，無單位，當子元素的 flex-basis 長度「大」於它自己在父元素分配到的長度，按照數字做相對應的「壓縮」比例分配，預設值為 1，設為 0 的話不會進行彈性變化，不可為負值。&lt;/li&gt;
&lt;li&gt;flex-basis：子元素的基本大小，作為父元素的大小比較基準，預設值為 0，也因為預設值為 0，所以沒有設定此屬性的時候，會以直接採用 flex-grow 屬性，flex-basis 也可以設為 auto，如果設為 auto，就表示子元素以自己的基本大小為單位。&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEit4d1cnjq9RAPu1bQU1hPHefL_KSp03vCxeXZDmpZs4cm2eWuPgXugdXmsjtrRUz_HUtu595moCPHmeoMvFvatZLWTh4Gvl7VMkwhlIwm5xRiGKp7eBw70ylX8vmJOhQUGLGIu9YKgSv4/s1600/009.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;135&quot; data-original-width=&quot;469&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEit4d1cnjq9RAPu1bQU1hPHefL_KSp03vCxeXZDmpZs4cm2eWuPgXugdXmsjtrRUz_HUtu595moCPHmeoMvFvatZLWTh4Gvl7VMkwhlIwm5xRiGKp7eBw70ylX8vmJOhQUGLGIu9YKgSv4/s1600/009.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
筆記整理，更詳細解說請至：深入解析 CSS Flexbox&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;http://www.oxxostudio.tw/articles/201501/css-flexbox.html&quot; target=&quot;blank&quot;&gt;http://www.oxxostudio.tw/articles/201501/css-flexbox.html&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
W3C 的&amp;nbsp;CSS Flexible Box Layout Module Level 1&lt;br /&gt;
&lt;a href=&quot;https://www.w3.org/TR/css-flexbox-1/#box-model&quot; target=&quot;blank&quot;&gt;https://www.w3.org/TR/css-flexbox-1/#box-model&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Flexbox 的屬性&lt;br /&gt;
&lt;a href=&quot;https://www.w3.org/TR/css-flexbox-1/#property-index&quot; target=&quot;blank&quot;&gt;https://www.w3.org/TR/css-flexbox-1/#property-index&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/662131377948946725/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/662131377948946725' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/662131377948946725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/662131377948946725'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/css3-flexbox.html' title='更加彈性的 CSS3 精靈盒子 - Flexbox'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisk2w7pX4EHkDZJGFxIqqutvmi8fiRQUxQxnbppmA_lvcPLKBSA4qCpmFvZntBPUeFeMXtKHklJNKxDRIA6pkSS_YbiFCoXD-N0-EHaQLXHbKIqwfanCEXURaW7noOmMUDCVWdPUKVGn0/s72-c/001.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-584638561228770297</id><published>2017-09-01T09:40:00.003-07:00</published><updated>2017-09-01T17:41:22.393-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS3"/><category scheme="http://www.blogger.com/atom/ns#" term="動畫效果"/><category scheme="http://www.blogger.com/atom/ns#" term="淡入"/><title type='text'>使用 CSS3 製作逐個淡入的動畫效果</title><content type='html'>HTML:&lt;br /&gt;
&amp;lt;div class=&quot;box fade-in one&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; look at me fade in&lt;br /&gt;
&amp;lt;/div&amp;gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;box fade-in two&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; Oh hi! i can fade too!&lt;br /&gt;
&amp;lt;/div&amp;gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&quot;box fade-in three&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; Oh hi! i can fade three!&lt;br /&gt;
&amp;lt;/div&amp;gt;

&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CSS:&lt;br /&gt;
/* 使用 keyframes 來決定物件的開始和結束狀態 */&lt;br /&gt;
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }&lt;br /&gt;
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }&lt;br /&gt;
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }&lt;br /&gt;
&lt;br /&gt;
.fade-in {&lt;br /&gt;
&amp;nbsp;opacity:0; &amp;nbsp;/* 一開始讓東西消失 */&lt;br /&gt;
&amp;nbsp;-webkit-animation:fadeIn ease-in 1; &amp;nbsp;/* 呼叫命名為 fadeIn 的 keyframe, 使用 ease-in 動畫效果並且只重複執行一次 */&lt;br /&gt;
&amp;nbsp;-moz-animation:fadeIn ease-in 1;&lt;br /&gt;
&amp;nbsp;animation:fadeIn ease-in 1;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;-webkit-animation-fill-mode:forwards; &amp;nbsp;/* 確保在動畫完成後，我們會保持在最後的 keyframe 值 (opacity: 1)*/&lt;br /&gt;
&amp;nbsp;-moz-animation-fill-mode:forwards;&lt;br /&gt;
&amp;nbsp;animation-fill-mode:forwards;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;-webkit-animation-duration:1s;&lt;br /&gt;
&amp;nbsp;-moz-animation-duration:1s;&lt;br /&gt;
&amp;nbsp;animation-duration:1s;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.fade-in.one {&lt;br /&gt;
-webkit-animation-delay: 0.7s;&lt;br /&gt;
-moz-animation-delay: 0.7s;&lt;br /&gt;
animation-delay: 0.7s;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.fade-in.two {&lt;br /&gt;
-webkit-animation-delay: 1.2s;&lt;br /&gt;
-moz-animation-delay:1.2s;&lt;br /&gt;
animation-delay: 1.2s;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.fade-in.three {&lt;br /&gt;
-webkit-animation-delay: 1.6s;&lt;br /&gt;
-moz-animation-delay: 1.6s;&lt;br /&gt;
animation-delay: 1.6s;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/*---建立一個基本的 box ---*/&lt;br /&gt;
.box{&lt;br /&gt;
width: 200px;&lt;br /&gt;
height: 200px;&lt;br /&gt;
position: relative;&lt;br /&gt;
margin: 10px;&lt;br /&gt;
float: left;&lt;br /&gt;
border: 1px solid #333;&lt;br /&gt;
background: #999;&lt;br /&gt;
}</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/584638561228770297/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/584638561228770297' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/584638561228770297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/584638561228770297'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/09/css3.html' title='使用 CSS3 製作逐個淡入的動畫效果'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-417764212488843082</id><published>2017-08-31T13:48:00.000-07:00</published><updated>2017-09-01T17:41:49.507-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jQuery plugin"/><category scheme="http://www.blogger.com/atom/ns#" term="SuperResize"/><category scheme="http://www.blogger.com/atom/ns#" term="全螢幕背景"/><title type='text'>jQuery外掛－「SuperResize打造全螢幕背景」適用各瀏覽器</title><content type='html'>&lt;h2&gt;
Supersized全螢背景外掛：&lt;/h2&gt;
適用瀏覽器：IE7.0+、Chrome、Firefox、Safari、Opera&lt;br /&gt;
展示：&lt;a href=&quot;http://ds.minwt.com.tw/file/sampleView/jQuery/superresizefullbackground/&quot;&gt;http://ds.minwt.com.tw/file/sampleView/jQuery/superresizefullbackground/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Supersized 參數設定：&lt;/h2&gt;
startwidth: 640 //照片起始長度&lt;br /&gt;
startheight: 480 //照片起始寬度&lt;br /&gt;
vertical_center: 1 //垂直居中 1居中,0關閉&lt;br /&gt;
slideshow: 1 //自動輪播 1開,0關&lt;br /&gt;
navigation: 1 //播放控制鈕 1開,0關&lt;br /&gt;
transition: 1 //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left //轉場效果&lt;br /&gt;
pause_hover: 1 //滑入時停止輪播 1開,0關&lt;br /&gt;
slide_counter: 1 //顯示圖片筆數 1開,0關&lt;br /&gt;
slide_captions: 1 //圖片名稱&lt;br /&gt;
slide_interval: 3000 //轉場時間&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Supersized 增加圖片：&lt;/h2&gt;
加在 &amp;lt;div id=&quot;supersize&quot;&amp;gt;~&amp;lt;/div&amp;gt; 之間即可，增加圖片img標籤中，可用title來設定圖片名稱。&lt;br /&gt;
完成後就可在各平台上運作了。</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/417764212488843082/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/417764212488843082' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/417764212488843082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/417764212488843082'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/08/jquerysuperresize.html' title='jQuery外掛－「SuperResize打造全螢幕背景」適用各瀏覽器'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-1773171341589344990</id><published>2017-08-31T13:17:00.000-07:00</published><updated>2017-09-01T17:42:41.358-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="淡入淡出效果"/><category scheme="http://www.blogger.com/atom/ns#" term="網頁切換"/><title type='text'>網頁間切換的淡出、淡入效果</title><content type='html'>&amp;lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$(document).ready(function() {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;$(&#39;body&#39;).css(&#39;display&#39;, &#39;none&#39;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;$(&#39;body&#39;).fadeIn(1000); //一開始淡入&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;$(&#39;a.link&#39;).click(function(event) { //點選 class 為 link 的 a 元件時觸發&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;event.preventDefault(); //取消事件預設動作&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;newLocation = this.href;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;$(&#39;body&#39;).fadeOut(1000, newpage); //點選後淡出&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;});&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;function newpage() {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;window.location = newLocation;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;});&lt;br /&gt;
&amp;lt;/script&amp;gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/1773171341589344990/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/1773171341589344990' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/1773171341589344990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/1773171341589344990'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/08/blog-post.html' title='網頁間切換的淡出、淡入效果'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-6580864775104426362</id><published>2017-06-28T06:42:00.000-07:00</published><updated>2017-09-01T17:43:11.933-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><category scheme="http://www.blogger.com/atom/ns#" term="開機自動連線"/><title type='text'>如何在 Windows 10 開機時，自動連線？</title><content type='html'>在 Windows 10 開機時，自動撥號寬頻連線的方式：&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;開啟【記事本】&lt;/li&gt;
&lt;li&gt;輸入 rasdial （您的寬頻連線名稱）（用戶名）（密碼）&lt;br /&gt;如: rasdial 寬頻連線 user 123&lt;/li&gt;
&lt;li&gt;將檔案存檔, 存檔類型選【所有檔案】，然後將檔案副檔名取為 .cmd (如: internet.cmd)，完成後【存檔】。&lt;/li&gt;
&lt;li&gt;將 internet.cmd 檔案，放置到啟動資料夾，之後開機就可以自動撥號了。&lt;/li&gt;
&lt;/ol&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/6580864775104426362/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/6580864775104426362' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/6580864775104426362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/6580864775104426362'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2017/06/windows-10.html' title='如何在 Windows 10 開機時，自動連線？'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-592465501291868589</id><published>2016-05-25T20:20:00.000-07:00</published><updated>2017-09-09T23:29:42.136-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="小工具"/><category scheme="http://www.blogger.com/atom/ns#" term="文字比對"/><title type='text'></title><content type='html'>KDiff3 提供文字比對功能，可以比對不同文字檔案或資料夾！比對後會逐行逐字列出檔案差異的地方，並有文字合併及整合的工具，讓你可依照比對後的結果作進一步的編輯。&lt;br /&gt;
&lt;br /&gt;
官方網站：&lt;a href=&quot;http://kdiff3.sourceforge.net/&quot;&gt;Joachim Eibl&lt;/a&gt;&lt;br /&gt;
檔案下載：&lt;a href=&quot;https://sourceforge.net/projects/kdiff3/files/&quot;&gt;Download&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/592465501291868589/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/592465501291868589' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/592465501291868589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/592465501291868589'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2016/05/blog-post.html' title=''/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-8565568545602001313</id><published>2016-05-25T00:52:00.004-07:00</published><updated>2017-09-01T17:43:49.751-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SASS"/><category scheme="http://www.blogger.com/atom/ns#" term="線上教學"/><title type='text'>從基礎到進階的 SASS 線上教學</title><content type='html'>&lt;a href=&quot;http://sam0512.blogspot.tw/2013/10/sass.html&quot;&gt;http://sam0512.blogspot.tw/2013/10/sass.html&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
SASS是一個可以提升寫網頁CSS效率的程式語言。&lt;/div&gt;
&lt;div&gt;
這個網站是一位高雄的前端工程師作的教學內容，有文字(可以當筆記)，有影片(可以線上教學)，真的很棒的一個教學網站。&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/8565568545602001313/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/8565568545602001313' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/8565568545602001313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/8565568545602001313'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2016/05/sass.html' title='從基礎到進階的 SASS 線上教學'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-4456486488717859215</id><published>2016-05-25T00:44:00.001-07:00</published><updated>2017-09-01T17:52:29.090-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bootstrap"/><category scheme="http://www.blogger.com/atom/ns#" term="Color Picker"/><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="HTML"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="W3.CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="Web Templates"/><category scheme="http://www.blogger.com/atom/ns#" term="線上教學"/><title type='text'>世界最大的WEB開發網站</title><content type='html'>&lt;a href=&quot;http://www.w3schools.com/&quot;&gt;http://www.w3schools.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
敢稱自己是世界最大的WEB開發網站，真的需要很強的實力。&lt;br /&gt;
裡面有很豐富和詳盡的內容，相信很多人都來過這裡找到想要的解答。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/4456486488717859215/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/4456486488717859215' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/4456486488717859215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/4456486488717859215'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2016/05/web.html' title='世界最大的WEB開發網站'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-5269961724181789034</id><published>2016-04-08T07:35:00.006-07:00</published><updated>2017-09-01T17:39:35.169-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="多國語言"/><category scheme="http://www.blogger.com/atom/ns#" term="技術規範"/><category scheme="http://www.blogger.com/atom/ns#" term="網站標準技術"/><title type='text'>多國語言的網頁設計標準技術</title><content type='html'>要設計多國語言的網站，你可以從下面網頁中開始了解使用國際化的網站標準技術。&lt;br /&gt;
&lt;br /&gt;
Internationalization Techniques: Authoring HTML &amp;amp; CSS&lt;br /&gt;
&lt;a href=&quot;https://www.w3.org/International/techniques/authoring-html-dynamic&quot;&gt;https://www.w3.org/International/techniques/authoring-html-dynamic&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/5269961724181789034/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/5269961724181789034' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/5269961724181789034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/5269961724181789034'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2016/04/blog-post.html' title='多國語言的網頁設計標準技術'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-5228213970457042396</id><published>2013-08-21T05:53:00.003-07:00</published><updated>2013-08-21T05:53:40.454-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><title type='text'>取消 Chrome 瀏覽器中 input 和 textarea 的預設樣式</title><content type='html'>Chrome 瀏覽器中的 input 和 textarea 在滑鼠移入時都有黃色邊框，而且 textarea 還可以任意拖移縮放，影響美觀不說，有時候還會使版頁面配置跑掉。&lt;br /&gt;
&lt;br /&gt;
取消 Chrome 瀏覽器中 input 和 textarea 的聚焦邊框：&lt;br /&gt;
input,button,select,textarea{outline:none}&lt;br /&gt;
&lt;br /&gt;
取消 Chrome 下 textarea 可拖移縮放：&lt;br /&gt;
textarea{resize:none}</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/5228213970457042396/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/5228213970457042396' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/5228213970457042396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/5228213970457042396'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2013/08/chrome-input-textarea.html' title='取消 Chrome 瀏覽器中 input 和 textarea 的預設樣式'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6695113908050506817.post-4482016433546952496</id><published>2013-08-21T05:26:00.001-07:00</published><updated>2013-08-21T05:26:33.709-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><title type='text'>去除連結虛線框</title><content type='html'>使用CSS&lt;br /&gt;
&lt;br /&gt;
a{&lt;br /&gt;
&amp;nbsp;outline: none; /* for Firefox */&lt;br /&gt;
&amp;nbsp;hlbr:expression(this.onFocus=this.blur()); /* for IE */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;參考網頁:&amp;nbsp;http://www.minwt.com/css/1144.html</content><link rel='replies' type='application/atom+xml' href='http://dtgunexpectedly.blogspot.com/feeds/4482016433546952496/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6695113908050506817/4482016433546952496' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/4482016433546952496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6695113908050506817/posts/default/4482016433546952496'/><link rel='alternate' type='text/html' href='http://dtgunexpectedly.blogspot.com/2013/08/blog-post_21.html' title='去除連結虛線框'/><author><name>Edward</name><uri>http://www.blogger.com/profile/02542252336004170855</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvzTvu3BfDrWVnosAhHXqeP376NbjSdSOZx_iVI2ZcBLhhkr0qOl6b9FS2l_JYQtE7RoN4MWh4KagqA0s_2k8wpOpsOxk7ZzgPezkv5c-QZGuGJ41jJVsKq-FQ8JiYTuA/s113/%25E5%2580%258B%25E4%25BA%25BA%25E7%259B%25B8%25E7%2589%25873.jpg'/></author><thr:total>0</thr:total></entry></feed>