<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MEPO Forum - 網站設計</title>
        <description></description>
        <link>http://mepopedia.com/forum/list.php?30</link>
        <lastBuildDate>Wed, 22 Apr 2026 04:03:19 +0800</lastBuildDate>
        <generator>Phorum 5.2.7</generator>
        <item>
            <guid>http://mepopedia.com/forum/read.php?30,7374,7374#msg-7374</guid>
            <title>[CSS] 讓整個網頁「置頂」，沒有空隙：body {margin:0}</title>
            <link>http://mepopedia.com/forum/read.php?30,7374,7374#msg-7374</link>
            <description><![CDATA[要讓網頁「置頂」情況大多是要做「置頂功能列」（例如：註冊、登入、回首頁等功能）。但有的時候都會發現「功能列」和整個視窗都有會有一些空白間隙。這個預設的空隙 Firefox 和 Chrome 大約是10px 左右，但在 IE 就比較大，大約是 20px (以上)。<br />
<br />
解決方式很簡單，就是在 body 將 CSS 設定為 <b>body{ margin:0}</b> 就可以了。<br />
<br />
但也因為各個 Browser 的預設 margin 不一樣，所以就算沒有要置頂，要維持各種 browser 畫面一致及美觀，在網頁設計之初，可加上 body{ margin-top:10px} 等類似設定。]]></description>
            <dc:creator>HP</dc:creator>
            <category>網站設計</category>
            <pubDate>Tue, 17 Aug 2010 19:51:02 +0800</pubDate>
        </item>
        <item>
            <guid>http://mepopedia.com/forum/read.php?30,2585,2585#msg-2585</guid>
            <title>三種讓網頁自動轉址的方法：HTML、Javascript、PHP</title>
            <link>http://mepopedia.com/forum/read.php?30,2585,2585#msg-2585</link>
            <description><![CDATA[1. HTML 的轉址方法：<br />
<br />
在 HTML 網頁的 &lt;/head&gt; 前加入以下 HMTL 碼，網頁就會自動轉址。<br />
<pre><span style="color: #000000;">&lt;<strong><span style="color: purple;">meta</span></strong> <strong>http-equiv</strong>="<span style="color: #0000ff;">refresh</span>" <strong>content</strong>="<span style="color: #0000ff;">0;url=http://mepopeidia.com</span>" <strong>/</strong>&gt;</span></pre>
其中 content=... 中的 0 是指 0 秒後自動重新整理，並轉址到 "http://mepopeidia.com" 這個 URL。<br />
<br />
<br />
2. Javascript 的轉址方法：<br />
<br />
在 HTML 網頁中原則上是任一地方加入以下 JavaScript 網頁就會轉址。但放在網頁 HTML 碼的開始較有效率(也較有意義)。<br />
<pre><span style="color: #000000;">&lt;script&gt;</span>document.location.href="http://mepopedia.com";<span style="color: #000000;">&lt;/script&gt;</span></pre>
<br />
3. PHP 的轉址方法：<br />
<pre><span style="color: #0000BB">&lt;?php<br />&nbsp;&nbsp;&nbsp;&nbsp;header</span><span style="color: #007700">(</span><span style="color: #DD0000">'Location:&nbsp;http://mepopedia.com'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;exit;<br /></span><span style="color: #0000BB">?&gt;</span></pre>]]></description>
            <dc:creator>HP</dc:creator>
            <category>網站設計</category>
            <pubDate>Wed, 04 Nov 2009 03:05:05 +0800</pubDate>
        </item>
        <item>
            <guid>http://mepopedia.com/forum/read.php?30,916,916#msg-916</guid>
            <title>[網頁推薦] 搞懂 CSS Position 中 Relative 和 Absolute 的用法 (有動態的圖型介紹)</title>
            <link>http://mepopedia.com/forum/read.php?30,916,916#msg-916</link>
            <description><![CDATA[以下推薦的網頁是很好的 CSS Postion 用法介紹，看完之後有種可以掌握 CSS 的感覺 (而不是「被掌握」)。雖然內容是英文，但其實裡面有很多「動態的」頁面介紹，解釋得非常清楚，一下子就可以搞懂 Relative 和 Absolute 的差別和用法是什麼。推薦！<br />
<br />
請見連結：<br />
<br />
<a href=http://www.barelyfitz.com/screencast/html-training/css/positioning/>Learn CSS Positioning in Ten Steps (十個步驗學會 CSS Position)</a>]]></description>
            <dc:creator>HP</dc:creator>
            <category>網站設計</category>
            <pubDate>Fri, 10 Jul 2009 01:55:16 +0800</pubDate>
        </item>
    </channel>
</rss>
