<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anthea Lee on Medium]]></title>
        <description><![CDATA[Stories by Anthea Lee on Medium]]></description>
        <link>https://medium.com/@AntheaLee?source=rss-842a974277ef------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1Fietm6Ya9JgduBPydVjXg.jpeg</url>
            <title>Stories by Anthea Lee on Medium</title>
            <link>https://medium.com/@AntheaLee?source=rss-842a974277ef------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 08:23:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@AntheaLee/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[如何製作「聯絡我們」網頁表單]]></title>
            <link>https://medium.com/@AntheaLee/%E5%A6%82%E4%BD%95%E8%A3%BD%E4%BD%9C-%E8%81%AF%E7%B5%A1%E6%88%91%E5%80%91-%E7%B6%B2%E9%A0%81%E8%A1%A8%E5%96%AE-3df78756ec81?source=rss-842a974277ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/3df78756ec81</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[forms]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Anthea Lee]]></dc:creator>
            <pubDate>Wed, 08 Aug 2018 09:25:08 GMT</pubDate>
            <atom:updated>2018-08-08T09:28:32.022Z</atom:updated>
            <content:encoded><![CDATA[<h4>不透過php內建mail() 或 <a href="https://github.com/Synchro/PHPMailer">PHPMailer</a>套件達成</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tv2GnfnMq3x3qS8bSEabCA.png" /><figcaption>「聯絡我們」網頁（圖一）</figcaption></figure><h4>先簡單區別一下：</h4><p>Ａ.使用 javascript</p><p>Ｂ.使用php內建mail() 或 <a href="https://github.com/Synchro/PHPMailer">PHPMailer</a>套件</p><pre><strong><br>Ａ直接開啟user端的郵件軟體(e.g.手機上的Gmail app、Mac上的Mail)進行傳送</strong></pre><pre><strong>Ｂ直接透過網頁使用</strong><a href="https://zh.wikipedia.org/wiki/%E7%AE%80%E5%8D%95%E9%82%AE%E4%BB%B6%E4%BC%A0%E8%BE%93%E5%8D%8F%E8%AE%AE"><strong>SMTP協定</strong></a><strong>達成傳送email目的（不用切換到額外的視窗）<br></strong></pre><h3>一、html核心</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*02vUmROM57nS0XxQUxiYnQ.png" /><figcaption>html form（圖二）</figcaption></figure><p>(因為覺得程式碼用圖片比較好看，如果要複製可以滑到最下面～(‘∀’*)看我多貼心)</p><h3>二、傳送按鈕的 onclick 事件 去執行javascript中的 submitHandler function</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rApyIdKADeJBvOn4bq54Mg.png" /><figcaption>js (圖三)</figcaption></figure><p>這些是寫在同一個.html檔喔～</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*acEYnh5wRZ_KK9bxjU-N4Q.png" /><figcaption>完成畫面（圖四）</figcaption></figure><h3>三、注意事項</h3><blockquote>‘%0A’是換行</blockquote><p>‘%0A%0A%0A’代表換三行（js line 16）</p><p>呈現在（圖四）右手邊郵件內容後，空三行後才顯示From:…</p><h3>四、代（複）碼（製）區</h3><h4>html</h4><pre>&lt;!-- 一開始即執行javascript的 init() function --&gt;<br>&lt;body onload=&quot;init()&quot;&gt;<br> &lt;form   enctype=&quot;text/plain&quot; accept-charset=&quot;utf-8&quot;&gt;<br>    &lt;!-- 寄件者姓名    --&gt;<br>     &lt;input id=&quot;nameText&quot; type=&quot;text&quot; name=&quot;Name&quot;  value size=&quot;60&quot; placeholder=&quot;姓名(name)&quot; required&gt;  &lt;!-- required 必填欄位 ，placeholder 預設內容--&gt; <br>     <br>     &lt;!-- 寄件者email --&gt;<br>     &lt;input id=&quot;emailText&quot; type=&quot;email&quot; name=&quot;Email&quot;  value size=&quot;60&quot; placeholder=&quot;Email&quot; required&gt;<br>     <br>     &lt;!-- 寄件者電話 --&gt;<br>     &lt;input id=&quot;telText&quot;type=&quot;tel&quot; name=&quot;Phone&quot;  value size=&quot;60&quot; aria-invalid=&quot;false&quot; placeholder=&quot;電話(phone)&quot; required&gt;<br>     <br>     &lt;!-- 郵件主旨 --&gt;<br>     &lt;input  id=&quot;subText&quot; type=&quot;text&quot; name=&quot;Subject&quot;  value size=&quot;60&quot; aria-invalid=&quot;false&quot; placeholder=&quot;主旨(subject)&quot; required&gt;<br>             <br>     &lt;!-- 郵件內容 --&gt;<br>     &lt;textarea id=&quot;bodyText&quot; name=&quot;your-message&quot; cols=&quot;40&quot; rows=&quot;10&quot;  aria-required=&quot;true&quot; aria-invalid=&quot;false&quot; placeholder=&quot;你的訊息(Your Message)&quot; required&gt;&lt;/textarea&gt;<br>     <br>     &lt;!-- 傳送按鈕 --&gt;<br>     &lt;div&gt;<br>         &lt;input type=&quot;button&quot; value=&quot;送出訊息&quot; onclick=&quot;submitHandler();&quot;&gt;<br>         &lt;a id=&quot;mailTo&quot;&gt;&lt;/a&gt;<br>     &lt;/div&gt;<br> &lt;/form&gt;<br>&lt;/body&gt;</pre><h4>javascript</h4><pre><br>&lt;script&gt;</pre><pre>//宣告預設表單內容為空 （你想要的話也可以加東西）<br>    var initSubject=&#39;&#39;,initBody=&#39;&#39;;<br> <br>    //按下傳送按鈕後執行<br>    function submitHandler(){<br>        var to = &quot;<a href="/service/mailto:contact@example.com">contact@example.com</a>&quot;;//寫死的傳送對象 就是公司的信箱 不會顯示在網頁上<br>        var name = nameText.value;//讀取ID為 nameTextuser 物件中的值<br>        var email = emailText.value;<br>        var tel = telText.value;<br>        var subject = subText.value;</pre><pre>//把user填的資料都塞到 mail body 中<br>        var body = &quot;&quot;+bodyText.value+&#39;%0A%0A%0A&#39;;//%0A是換行 換了三行<br>            body += &quot;From：&quot;+nameText.value+&#39;%0A&#39;;<br>            body += &quot;Email：&quot;+emailText.value+&#39;%0A&#39;;<br>            body += &quot;Tel：&quot;+telText.value;</pre><pre>//傳送的主要程式碼<br>        mailTo.href=&quot;mailto:&quot;+to+&quot;?subject=&quot;+subject+&quot;&amp;body=&quot;+body;<br>        mailTo.click();<br>    }</pre><pre>//在body onload<br>    function init(){<br>        subText.value=initSubject;<br>        toText.value=initTo;<br>        bodyText.value=initBody;<br>    }<br>&lt;/script&gt;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3df78756ec81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[web design] Slick Slider(3)加入dots篇]]></title>
            <link>https://medium.com/@AntheaLee/web-design-slick-slider-3-%E5%8A%A0%E5%85%A5dots%E7%AF%87-a6b442f2072b?source=rss-842a974277ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6b442f2072b</guid>
            <category><![CDATA[slider]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[slick-slider]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[Anthea Lee]]></dc:creator>
            <pubDate>Wed, 18 Jul 2018 07:28:54 GMT</pubDate>
            <atom:updated>2018-07-18T07:31:34.328Z</atom:updated>
            <content:encoded><![CDATA[<h4>續<a href="https://medium.com/@AntheaLee/web-design-carousel-%E8%AA%BF%E6%95%B4%E5%8F%83%E6%95%B8%E7%AF%87-b0f0210f69f6">[web design]Slick Slider(2)</a>在Slider下方加入點點</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3pE9HTT1Qv7kj1NYRmjiqQ.png" /><figcaption>㐃對就是上面這些點點㐃</figcaption></figure><p>上次我們是引用網址中的.js檔，這次我們直接把github上面的專案<a href="https://github.com/kenwheeler/slick"><strong>載下</strong></a>來，再設定好.js的路徑，還有新增.css的路徑，最後修改一下.js就好了！</p><p>1、下載專案到你要地方（也可以看slick slider作者自己的<a href="http://kenwheeler.github.io/slick/"><strong>教學</strong></a>）</p><p>2、在body結束前加上：</p><pre>&lt;script type=&quot;text/javascript&quot; src=&quot;<strong><em>XXX</em></strong>/slick/jquery-1.11.0.min.js&quot;&gt;&lt;/script&gt;   <br>    <br>&lt;script type=&quot;text/javascript&quot; src=&quot;<strong><em>XXX</em></strong>/slick/jquery-migrate-1.2.1.min.js&quot;&gt;&lt;/script&gt;<br>    <br>&lt;script type=&quot;text/javascript&quot; src=&quot;<strong><em>XXX</em></strong>/slick/slick.min.js&quot;&gt;&lt;/script&gt;<br><strong><em>(上面粗體地方改成自己的路徑)</em></strong></pre><p>3、head中加入</p><pre>&lt;!-- slick slider CSS --&gt;<br>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;<strong><em>XXX</em></strong>/slick/slick.css&quot;/&gt;</pre><pre>&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;<strong><em>XXX</em></strong>/slick/slick-theme.css&quot;/&gt;<br><strong><em>(上面粗體地方改成自己的路徑)</em></strong></pre><p>4、最後，在.js加上這兩句就好了</p><pre>$(&quot;.yourClassName&quot;).slick({<br>    <strong>dots:true,//這一句！！！！！！！！<br>    dotsClass: &#39;slick-dots&#39;,//還有這一句！！！！！！！</strong><br>    infinite: true,<br>    rtl:false, // If RTL Make it true &amp; .slick-slide{float:right;}<br>    autoplay:true, <br>    autoplaySpeed:5000, //  Slide Delay<br>    speed:800, // Transition Speed<br>    slidesToShow:4, // Number Of Carousel<br>    slidesToScroll:1, // Slide To Move <br>    pauseOnHover:false,<br>    appendArrows:$(&quot;.Container1 .Head1 .Arrows1&quot;), // Class For Arrows Buttons<br>    prevArrow:&#39;&lt;span class=&quot;Slick-Prev&quot;&gt;&lt;/span&gt;&#39;,<br>    nextArrow:&#39;&lt;span class=&quot;Slick-Next&quot;&gt;&lt;/span&gt;&#39;,<br>    easing:&quot;linear&quot;,<br>    responsive:[<br>      {breakpoint:979,settings:{<br>        slidesToShow:3,<br>      }},<br>      {breakpoint:753,settings:{<br>        slidesToShow:2,<br>      }},<br>      {breakpoint:528,settings:{<br>        slidesToShow:1,<br>      }},<br>    ],<br>  })</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6b442f2072b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[js] 計算秒數 隱藏物件]]></title>
            <link>https://medium.com/@AntheaLee/js-%E8%A8%88%E7%AE%97%E7%A7%92%E6%95%B8%E9%9A%B1%E8%97%8F%E7%89%A9%E4%BB%B6-f7b24f7e1a0?source=rss-842a974277ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7b24f7e1a0</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[timer]]></category>
            <category><![CDATA[webdesing]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[scroll]]></category>
            <dc:creator><![CDATA[Anthea Lee]]></dc:creator>
            <pubDate>Wed, 18 Jul 2018 06:48:50 GMT</pubDate>
            <atom:updated>2018-08-08T09:52:23.560Z</atom:updated>
            <content:encoded><![CDATA[<p>3秒後消失示意影片：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/1*iul7XQ0ICxq55ETGyn6Qfw.gif" /></figure><ol><li>設定timer：三秒後要執行的func</li></ol><pre>window.<strong>setTimeout</strong>(<strong>Timefunction</strong>,<strong>3000</strong>);//Timefunction是自己取的func name</pre><p>2.Timefunction的內容</p><pre>function <strong>Timefunction</strong>(){<br>        document.getElementById(&quot;topBtn&quot;).style.display = &quot;<strong>none</strong>&quot;;<br>        //3秒後影藏物件<br>}</pre><p>寫在觸發onscroll後的樣子：</p><pre>// When the user scrolls down 1000px from the top of the document, show the button</pre><pre>window.<strong>onscroll</strong> = function() {scrollFunction()};</pre><pre>function scrollFunction() {<br>     if (document.body.scrollTop &gt; 1000 ||                     <br>         document.documentElement.scrollTop &gt; 1000) {<br>            document.getElementById(&quot;topBtn&quot;).style.display = <br>            &quot;block&quot;;<br>     } else {<br>            document.getElementById(&quot;topBtn&quot;).style.display = <br>            &quot;none&quot;;<br>     }<br>     <strong>window.setTimeout(Timefunction,3000);</strong><br>}<br><strong>function Timefunction(){<br>     document.getElementById(&quot;topBtn&quot;).style.display = &quot;none&quot;;<br>}</strong></pre><blockquote>後來發現這個方會有個bug就是window.onscroll會一直觸發，最後按鈕會開始閃爍。。。</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7b24f7e1a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[CSS] Let image fit a div Note]]></title>
            <link>https://medium.com/@AntheaLee/css-let-image-fit-a-div%E7%AD%86%E8%A8%98-114b79698c3b?source=rss-842a974277ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/114b79698c3b</guid>
            <dc:creator><![CDATA[Anthea Lee]]></dc:creator>
            <pubDate>Tue, 17 Jul 2018 10:45:35 GMT</pubDate>
            <atom:updated>2018-11-20T06:01:54.556Z</atom:updated>
            <content:encoded><![CDATA[<p>我已經查三遍了…決定把來紀下來….</p><pre>img{</pre><pre>   max-width:100%;<br>   max-height:100%;</pre><pre>}</pre><p>參考：<a href="https://stackoverflow.com/questions/3029422/how-do-i-auto-resize-an-image-to-fit-a-div-container">https://stackoverflow.com/questions/3029422/how-do-i-auto-resize-an-image-to-fit-a-div-container</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=114b79698c3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[web design] How small should I compress the img to make it load faster on the webpage?]]></title>
            <link>https://medium.com/@AntheaLee/web-design-how-small-should-i-compress-the-img-to-make-it-load-faster-on-the-webpage-cf0f44e0e93c?source=rss-842a974277ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf0f44e0e93c</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[image-sizes]]></category>
            <category><![CDATA[image-resolution]]></category>
            <category><![CDATA[mac-preview]]></category>
            <category><![CDATA[resolutions]]></category>
            <dc:creator><![CDATA[Anthea Lee]]></dc:creator>
            <pubDate>Tue, 17 Jul 2018 03:59:51 GMT</pubDate>
            <atom:updated>2018-07-17T05:58:52.589Z</atom:updated>
            <content:encoded><![CDATA[<h4>我應該把圖片壓縮成多大好在網頁中更快地載入?</h4><blockquote>Include<strong> how to compress image on Mac?</strong></blockquote><p>大家都知道圖片太大的話網頁載入速度就慢，而使用者的平均等待時間不超過3秒，所以在開發網站的時候到底要把圖片壓縮成多大才不會讓網頁載入時間太長？又如何在Mac電腦上壓縮呢？</p><p>以下是我個人的方法步驟：</p><blockquote>Step1.檢查圖片資訊、調整圖片大小</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-mSRJI7WDdCelicGzWcSKw.png" /></figure><blockquote>如果是網頁全寬圖我會調&gt;1200px(Width)，如果是佔網頁的1/3我會調&gt;400px(Width)</blockquote><blockquote>Resolution need to be &lt; 72 px/inch</blockquote><blockquote>Step2.check RGB</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RrDSmx-gnZa3wnN40wuX4A.png" /></figure><blockquote>Step3.調整圖片品質（<strong><em>關鍵</em></strong><em>）</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bze0zr8PP8OggEwmLDjYdQ.png" /></figure><blockquote>File Size：70K~400K</blockquote><p>以上教學是簡易版，還未涉及如何調整Color Mode。See you soon~</p><blockquote>參考：<a href="http://bradymower.com/image-sizes-dimensions-for-web/">http://bradymower.com/image-sizes-dimensions-for-web/</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf0f44e0e93c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[CSS]@media的筆記]]></title>
            <link>https://medium.com/@AntheaLee/css-media%E7%9A%84%E7%AD%86%E8%A8%98-51d773d80fef?source=rss-842a974277ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/51d773d80fef</guid>
            <category><![CDATA[rwd]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[Anthea Lee]]></dc:creator>
            <pubDate>Mon, 16 Jul 2018 07:15:10 GMT</pubDate>
            <atom:updated>2018-07-17T02:09:03.425Z</atom:updated>
            <content:encoded><![CDATA[<p>在不同尺寸大小<strong><em>範圍 </em></strong>執行不同的CSS區段</p><p>筆記：</p><pre><a href="http://twitter.com/media">@media</a> (<strong>min-width: 320px</strong>) and (<strong>max-width: 525px</strong>){<br>  .Gool{<br>    /*background-color: orange;*/<br>    margin-right: 3%;<br>    margin-left: 3%;<br>    margin-bottom: 50px;<br>  }<br>  #copyright{<br>    padding: 0 3%;<br>  }<br>}<br><a href="http://twitter.com/media">@media</a>  (<strong>min-width: 526px</strong>) and (<strong>max-width: 991px</strong>){<br>  .Gool{<br>    margin-right: 20%;<br>    margin-left: 20%;<br>    margin-bottom: 50px;<br>  }<br>}</pre><p>@media (min-width:320px) and (max-width:525px)<br>表示在螢幕寬320px~525px之間執行這段</p><p>@media (min-width:526px) and (max-width:991px)<br>表示在螢幕寬526px~991px之間執行這段</p><h4>會這樣設計是因為碰到了在<strong>手機畫面</strong>中左右padding太多的，中間一段短短的文字很快就必須<strong>換行</strong>，不利於閱讀，而在平板畫面中希望左右padding大一點，將文字區塊集中在中間。</h4><p>原本我只設一個@media (<strong>max</strong>-width:991px)，<br>一個@media (<strong>max</strong>-width:525px)。</p><p>但是這樣會造成≤525的時候還是執行≤991那段的程式碼，不會理會寫在≤525中的內容。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51d773d80fef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[web design] Slick Slider(2)調整參數篇]]></title>
            <link>https://medium.com/@AntheaLee/web-design-carousel-%E8%AA%BF%E6%95%B4%E5%8F%83%E6%95%B8%E7%AF%87-b0f0210f69f6?source=rss-842a974277ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0f0210f69f6</guid>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[slider]]></category>
            <category><![CDATA[slick-slider]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[carousel]]></category>
            <dc:creator><![CDATA[Anthea Lee]]></dc:creator>
            <pubDate>Fri, 13 Jul 2018 06:42:49 GMT</pubDate>
            <atom:updated>2018-07-17T09:07:29.324Z</atom:updated>
            <content:encoded><![CDATA[<h4>續<a href="https://medium.com/@AntheaLee/web-design-carousel-fe3961955b01">[web design] Slick Slider(1)</a>螢幕大小＆每頁顯示幾個區塊</h4><p><strong>本篇重點：調整斷點（breakpoint）！<br></strong>避免圖片因螢幕尺寸改變而被切到或變形。</p><p>先來看發生了什麼:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h3HOC2JFV0G2cvlaEhVEGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*53m0uHeZ3RKfWZ-II2CZdA.png" /><figcaption>兩張被切割的慘狀&gt;&lt;</figcaption></figure><p>再來看看調整後的結果：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R7eqLOJ-ZdPFVQFtohh_rw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*bMz06b1K0nh3cqiskclrMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1sJcAiNYySvTPBEiqvgRVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5BSTao5uikJQMdCb7T1B3A.png" /><figcaption>調整breakpoint後^__^</figcaption></figure><p>Ｑ：如何做到？<br>Ａ：要在上篇中講到的<strong>.js</strong>檔中改以下參數：</p><pre>responsive:[<br>      {breakpoint:<strong>979</strong>,settings:{<br>        slidesToShow:<strong>3</strong>,<br>      }},<br>      {breakpoint:<strong>753</strong>,settings:{<br>        slidesToShow:<strong>2</strong>,<br>      }},<br>      {breakpoint:<strong>528</strong>,settings:{<br>        slidesToShow:<strong>1</strong>,<br>      }},<br>    ],</pre><pre>//這些斷點數字需識圖片大小調整，也要動手自己去條瀏覽器大小後決定<br>//3,2,1的粗體數字表示，要有幾張圖在畫面中</pre><p>本篇結束～～～～～～～～～～～～～～～END</p><blockquote>另外~<br>若要讓網頁中同時有“兩個”slide區塊可以這樣做，</blockquote><p>（先看圖）</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tN0zeVsJE9hCrUU591lMGg.png" /><figcaption>兩個slider區塊示意圖</figcaption></figure><p>原.html：</p><pre>&lt;div class=&quot;<strong>Container</strong>&quot;&gt;<br>        &lt;h3 class=&quot;<strong>Head</strong>&quot;&gt; &lt;span class=&quot;<strong>Arrows</strong>&quot;&gt;&lt;/span&gt;&lt;/h3&gt;<br>        &lt;div class=&quot;<strong>SlickCarousel</strong>&quot;&gt;<br>             ...<br>           ...<br>             ...<br>        &lt;/div&gt;<br>&lt;/div&gt;</pre><p>新增：</p><pre>&lt;div class=&quot;<strong>Container1</strong>&quot;&gt;<br>        &lt;h3 class=&quot;<strong>Head1</strong>&quot;&gt; &lt;span class=&quot;<strong>Arrows1</strong>&quot;&gt;&lt;/span&gt;&lt;/h3&gt;<br>        &lt;div class=&quot;<strong>SlickCarousel1</strong>&quot;&gt;<br>           ...<br>          ...<br>           ...<br>        &lt;/div&gt;<br>&lt;/div&gt;</pre><p>當然.css,.js的部分也要改~但也只要複製一份加上“1”就好了w（超懶 喂！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0f0210f69f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[web design] 左右右左 →上下上下(RWD 概念篇)]]></title>
            <link>https://medium.com/@AntheaLee/web-design-%E5%B7%A6%E5%8F%B3%E5%8F%B3%E5%B7%A6-%E4%B8%8A%E4%B8%8B%E4%B8%8A%E4%B8%8B-28dcd1e6a3a?source=rss-842a974277ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/28dcd1e6a3a</guid>
            <category><![CDATA[bootstrap-4]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[rwd]]></category>
            <category><![CDATA[中文]]></category>
            <dc:creator><![CDATA[Anthea Lee]]></dc:creator>
            <pubDate>Fri, 13 Jul 2018 02:37:03 GMT</pubDate>
            <atom:updated>2019-04-29T16:02:14.912Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>網頁畫面排版</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SvHlu-b4qywf4_-2m2aWPQ.jpeg" /><figcaption>左右右左 →上下上下 示意圖</figcaption></figure><p>本來想用flex做的，但礙於對flex不熟所以放棄了，先求有再求好，於是我讓瀏覽起寬度在電腦以及平板的時讓紫(偏藍)色圖片float到右邊去，而在手機模式就不要做任何float設定。</p><p>[綠色] 4 : 8 左圖→右圖上12 下12 = col-sm-4 : col-sm-8<br>[紫色] 8 : 4 左圖→右圖上12 下12 = col-sm-4 : col-sm-8(視覺上是8:4但其實寫&lt;div&gt;的順序還是4 →8)</p><p>CSS:</p><pre>@media (min-width:768px) {/*超過768px執行 平板*/<br>  .PurpleImg{<br>   float: right;<br>  }<br>}</pre><pre>@media (min-width:992px) {/*超過992px執行 電腦*/<br>   .PurpleImg{<br>   float: right;<br>  }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28dcd1e6a3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[web design] Slick Slider(1)]]></title>
            <link>https://medium.com/@AntheaLee/web-design-carousel-fe3961955b01?source=rss-842a974277ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe3961955b01</guid>
            <category><![CDATA[slick-slider]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[carousel]]></category>
            <category><![CDATA[slider]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[Anthea Lee]]></dc:creator>
            <pubDate>Thu, 12 Jul 2018 10:21:18 GMT</pubDate>
            <atom:updated>2018-07-18T07:31:08.945Z</atom:updated>
            <content:encoded><![CDATA[<h4>Other Keyword : Carousel</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ub2TRHtRuqJC4AGbWmI1aw.png" /><figcaption>示意圖（這只是圖片）</figcaption></figure><p>就是這種類似幻燈片展示的功能</p><p>首先<em><br></em>參考codepen上大大的<a href="https://codepen.io/EngCode/pen/Vvppdy/">實作</a>（當初找關鍵字找好久orz）</p><p>接著<br>引用了他的html， css， js<br>(就是能引用的引用了)<em>說那麼好聽明明就是複製貼上..咳</em></p><p>但是<br>畫面還是爆掉了rrrr</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o9bWdluFVxiGCFU0iHu4bw.png" /><figcaption>爆掉的畫面ＱＡＱ</figcaption></figure><p>於是<br>下載了大大的.zip</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Mn2tJ-pySFJwwKw4Rn3jw.png" /><figcaption>codepen頁面右下角</figcaption></figure><p>找到了關鍵<br>在.html 下方的js引用！複製到原專案～成功｡.:*･\(*ﾟ▽ﾟ*)/･*:.｡</p><pre>&lt;script src=&#39;<a href="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js&#39;">http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js&#39;</a>&gt;&lt;/script&gt;//關鍵行一</pre><pre>&lt;script src=&#39;<a href="https://kenwheeler.github.io/slick/slick/slick.js&#39;">https://kenwheeler.github.io/slick/slick/slick.js&#39;</a>&gt;&lt;/script&gt;//關鍵行二</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VUYQ1CdTjEoE9t0nwqcwJw.png" /><figcaption>而且縮成手機畫面還會自動變3個！超強der~~</figcaption></figure><p><em>之後在css中調整了圖片的寬度避免變形</em></p><pre>.img-fill img {<br>  height: 100%;<br>  min-width: 75%;//這一行～～～<br>  position: relative;<br>  display: inline-block;<br>  max-width: none<br>}</pre><h4>下一個目標，在下面加點點<a href="https://medium.com/@AntheaLee/web-design-slick-slider-3-%E5%8A%A0%E5%85%A5dots%E7%AF%87-a6b442f2072b">(傳送門)</a></h4><p>另外碰一件很微妙的事情，在html中<strong>不存在</strong>的class卻被寫在css中<br>例如：<br>.slick-track、.slick-list、.slick-slider、.slick-list.dragging、.slick-vertical</p><p>刪掉還會出錯！為什麼呢？？</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe3961955b01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[CSS] 視差滾動parallax scrolling]]></title>
            <link>https://medium.com/@AntheaLee/web-%E8%A6%96%E5%B7%AE%E6%BB%BE%E5%8B%95-c4483ba7ada6?source=rss-842a974277ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4483ba7ada6</guid>
            <category><![CDATA[parallax]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Anthea Lee]]></dc:creator>
            <pubDate>Thu, 12 Jul 2018 02:06:52 GMT</pubDate>
            <atom:updated>2018-07-18T07:35:25.587Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W2dsh1MCd3nGkTZKiABpeg.png" /><figcaption>示意圖1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y3tqTxXhCiuSm0_Fm3uhiA.png" /><figcaption>示意圖2（卷動頁面後文字往上移背景沒動）</figcaption></figure><p>關鍵字：Parallax Scrolling</p><p>說明：頁面卷動時，背景圖不動</p><p>1，給區段的背景CSS：</p><pre>background-attachment: fixed;/*Parallax Scrolling Effect*/</pre><p>這樣就好了!!!（但這只是初階，進階一點可以讓背景卷動速度比文字慢，而不是固定不動）</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4483ba7ada6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>