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

<channel>
	<title>傅不死 FullHouse &#187; 原創</title>
	<atom:link href="http://kanafu.com/archives/tag/%e5%8e%9f%e5%89%b5/feed" rel="self" type="application/rss+xml" />
	<link>http://kanafu.com</link>
	<description>生而在世，我很抱歉。。。</description>
	<lastBuildDate>Thu, 04 Aug 2011 21:40:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress滴打滴【被打版】</title>
		<link>http://kanafu.com/archives/507</link>
		<comments>http://kanafu.com/archives/507#comments</comments>
		<pubDate>Thu, 07 Oct 2010 12:58:18 +0000</pubDate>
		<dc:creator>娜娜子</dc:creator>
				<category><![CDATA[噴跑吧，WordPress！]]></category>
		<category><![CDATA[甚麼事都叫我著迷；]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[WebChatter]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[佈告欄]]></category>
		<category><![CDATA[原創]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[教程]]></category>
		<category><![CDATA[更新履歷]]></category>
		<category><![CDATA[滴打滴]]></category>
		<category><![CDATA[網頁]]></category>

		<guid isPermaLink="false">http://kanafu.com/?p=507</guid>
		<description><![CDATA[所謂滴打滴，其實沒有任何實質意思只是我隨便叫好玩的。你可以當它是網站公告版、佈告欄、網站筆記本那類的隨便。 這個小東西的誕生起因於一開始用來作網站新聞的推爺已經默默的被我當作聊天版了。然後某天不小心點到自己的TwitterFeed就是超嗨的整個都是聊天記錄‧‧‧ 完全沒有任何佈告欄的意思啊根本就！ 對於那種沒有交集但是只是想知道網站重要新聞的推爺訂閱者來說，這樣的情況應該會非常苦惱吧(每天面對著一大片和自己毫無關聯的聊天紀錄誰高興得起來啊~？) 所以所以就寫了這個小小的滴打滴(WebChatter)，原本是打算讓它獨立運作的(畢竟我並不覺得自己會用一輩子的Wordpress)，但是因為懶得寫管理畫面又所以所以只好收進WP後台。 人家歪國人寫甚麼東西都喜歡加一個beta版，但是我這個實在太陽春+寫得又好亂所以就是被打版。 主要機能如下： 新增(廢話)/刪除(批次)/修改(二次編集)/簡單RssFeed 2.0支援/AJAX分頁/初始化(刪除資料表)/時區&#38;時間格式編輯/wp short code支援。 預覽畫面如下： 也可以參考我的首頁側欄和BIO頁面的實際使用情況 使用方式如下： 1. 下載後在chatter裡打開config.php依照需求編集 2. 打開主題目錄下的functions.php(沒有這個檔案的自己開一個)新增 1 require_once&#40;TEMPLATEPATH . '/chatter/chatter_admin.php'&#41;; 3. 將整個chatter資料夾上傳至目前正使用的主題目錄下(目錄結構為：你的主題資料夾/chatter/)。 4. 進後台會就看見【佈告欄管理】的選項，新增第一篇公告後程式將自動在資料庫(config.php裡設定的那個)裡建立新的資料表和欄位。 5. 調用時支援可依照情況選擇php code或者short code PhpCode 1 &#60;?php kana_chatter ?&#62; ShortCode 1 &#160; 6. HTML結構如下，請自行按照需求編寫CSS。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [...]]]></description>
			<content:encoded><![CDATA[<a rel="shadowbox" title="WordPress滴打滴【被打版】" class="blank" href="http://pic.kanafu.com/o/20101007.jpg"><img class="wordimg" src="http://pic.kanafu.com/m/20101007.jpg" alt="WordPress滴打滴【被打版】" /></a><br/>
所謂<span class="line">滴打滴</span>，其實沒有任何實質意思只是我隨便叫好玩的。你可以當它是<span class="line">網站公告版、佈告欄、網站筆記本</span>那類的隨便。<br />
	<br />
	這個小東西的誕生起因於一開始用來作網站新聞的<a href="http://twitter.com/imkana" title="推爺" class="blank">推爺</a>已經默默的被我當作<span class="line">聊天版</span>了。然後某天不小心點到自己的<a title="TwitterFeed" class="blank" href="http://twitter.com/statuses/user_timeline/8207332.rss">TwitterFeed</a>就是超嗨的整個都是聊天記錄‧‧‧<br />
	<br />
	<strong><span style="font-size: 20px;"><span style="color: rgb(128, 0, 0);">完全沒有任何佈告欄的意思啊根本就！</span></span></strong><br />
	<br />
	對於那種沒有交集但是只是想知道網站重要新聞的推爺訂閱者來說，這樣的情況應該會非常苦惱吧(每天面對著一大片和自己毫無關聯的聊天紀錄誰高興得起來啊~？)<br />
	<br />
	所以所以就寫了這個小小的<span class="line">滴打滴(WebChatter)</span>，原本是打算讓它<span class="line">獨立運作</span>的(畢竟我並不覺得自己會用一輩子的Wordpress)，但是因為<span class="line">懶得寫管理畫面</span>又所以所以只好<span class="line">收進WP後台</span>。<br />
	<br />
	人家<span class="line">歪國人</span>寫甚麼東西都喜歡加一個<span class="line">beta版</span>，但是我這個實在太陽春+寫得又好亂所以就是<span class="line">被打版</span>。<br />
	<br />
	<h2>主要機能如下：</h2>
	
<br />
<blockquote>新增(廢話)/刪除(批次)/修改(二次編集)/簡單RssFeed 2.0支援/AJAX分頁/初始化(刪除資料表)/時區&amp;時間格式編輯/wp short code支援。</blockquote><br />

	<h2>預覽畫面如下：</h2>
	<br />
<a rel="shadowbox[p20101007]" title="page裡的使用" class="blank" href="http://pic.kanafu.com/20101007/01.jpg"><img class="wordimg" src="http://pic.kanafu.com/20101007/01s.jpg" alt="page裡的使用" /></a> <a rel="shadowbox[p20101007]" title="sidebar裡的使用" class="blank" href="http://pic.kanafu.com/20101007/02.jpg"><img class="wordimg" src="http://pic.kanafu.com/20101007/02s.jpg" alt="sidebar裡的使用" /></a> <a rel="shadowbox[p20101007]" title="後台管理畫面" class="blank" href="http://pic.kanafu.com/20101007/03.jpg"><img class="wordimg" src="http://pic.kanafu.com/20101007/03s.jpg" alt="後台管理畫面" /></a> <a rel="shadowbox[p20101007]" title="二次編集畫面" class="blank" href="http://pic.kanafu.com/20101007/04.jpg"><img class="wordimg" src="http://pic.kanafu.com/20101007/04s.jpg" alt="二次編集畫面" /></a> <a rel="shadowbox[p20101007]" title="Feed畫面" class="blank" href="http://pic.kanafu.com/20101007/05.jpg"><img class="wordimg" src="http://pic.kanafu.com/20101007/05s.jpg" alt="Feed畫面" /></a>
<br/>
	也可以參考我的<a class="blank" title="傅不死FullHouse" href="http://kanafu.com">首頁</a>側欄和<a class="blank" title="BIO頁面" href="http://kanafu.com/bio">BIO頁面</a>的實際使用情況<br />
	<br />
	<h2>使用方式如下：</h2>
	1. 下載後在chatter裡打開<span class="line">config.php</span>依照需求編集<br />
	2. 打開<span class="line">主題目錄</span>下的<span class="line">functions.php</span>(沒有這個檔案的自己開一個)新增<br /><br />


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/chatter/chatter_admin.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>


<br />
	3. 將整個<span class="line">chatter</span>資料夾上傳至目前正使用的主題目錄下(目錄結構為：<span class="line">你的主題資料夾/chatter/)</span>。<br />
	4. 進後台會就看見<span class="line">【佈告欄管理】</span>的選項，<span class="line">新增第一篇公告</span>後程式將自動在資料庫(config.php裡設定的那個)裡建立新的資料表和欄位。<br />
	5. 調用時支援可依照情況選擇<span class="line">php code</span>或者<span class="line">short code</span><br />
	<br />
	<span class="line">PhpCode</span><br />


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> kana_chatter <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>



	<br />
	<span class="line">ShortCode</span><br />


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;">[kana_chatter]</pre></td></tr></table></div>



	<br />
	6. HTML結構如下，請自行按照需求編寫CSS。<br /><br />


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;blogchatter&quot;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Na_show_chatter&quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Na_chatter_time&quot;</span>&gt;</span>時間<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Na_chatter_txt&quot;</span>&gt;</span>內容<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Na_chatternav &quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Na_chatternav_ft&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>最前頁<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Na_chatternav_pv&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>前頁<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Na_chatternav_nav&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>頁碼1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Na_chatternav_nav&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>頁碼2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Na_chatternav_nt&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>後頁<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Na_chatternav_lt&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>最後頁<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;clear: both; height: 10px;&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>



	<br />
	因為<span class="line">太想抽菸</span>導致<span class="line">完全無法專心思考</span>，所以我決定用<span class="line">直接把檔案打出來來代替code解說</span>。有興趣的人可以自己拆一下原檔，我寫得時候都有標上中文註釋，應該不難理解才是。<br />
Note: There is a file embedded within this post, please visit this post to download the file. Note: There is a file embedded within this post, please visit this post to download the file.
	<br />
	再來再來，我不是吃php長大的程序員，所以如果有前輩出現也<span class="line">請勿用力拍打</span>，寫好玩而已的。<br />
	<br />
	最後最後，<span style="color: rgb(0, 0, 0);"><strong><span style="font-size: 30px;">嚴禁任何情況下的商業使用</span></strong></span>。<br />
	<br />
	以上，歡迎報告使用心得。
<br /><br /><br />
<span style="font-size: 10px;">-- THE END --</span>]]></content:encoded>
			<wfw:commentRss>http://kanafu.com/archives/507/feed</wfw:commentRss>
		<slash:comments>95</slash:comments>
		</item>
		<item>
		<title>WordPress Theme│Zero-PIC 之 你問我答</title>
		<link>http://kanafu.com/archives/470</link>
		<comments>http://kanafu.com/archives/470#comments</comments>
		<pubDate>Mon, 09 Aug 2010 13:51:11 +0000</pubDate>
		<dc:creator>娜娜子</dc:creator>
				<category><![CDATA[噴跑吧，WordPress！]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主題]]></category>
		<category><![CDATA[使用說明]]></category>
		<category><![CDATA[免費]]></category>
		<category><![CDATA[兩欄]]></category>
		<category><![CDATA[原創]]></category>
		<category><![CDATA[教程]]></category>
		<category><![CDATA[模版]]></category>
		<category><![CDATA[首頁縮略圖]]></category>

		<guid isPermaLink="false">http://kanafu.com/archives/470</guid>
		<description><![CDATA[2011/02/04 Update 加入：Related Posts By Category、AJAX Comments(willin)、Unlimited Level Nested Comments、SweetTitle、Imageresize、Index Page Style Select、Archives(SideBar) Toggle 更新：Tagcloud function寫法，Recent Comments 寫法，Blogrool 加favicon 註：更新後請依照functions.php裡註解做改動即可。 FILE DOWNLOAD(檔案下載)檔案下載(tar/zip)：-2011/02/04 END 在雜事爆多的星期一把這幾部影片拍完我覺得我真是太勇敢也太酷酷!! TO 三問的MiiA小姐和Gravatar很繽紛的Bryan先生還有很害羞的傳了4封聯絡表單給我的coli同學，感謝你們喜歡zero-pic(鞠躬)。不過呢...這 裡要提醒下coli桑...下次傳一封就好了...太多反而會被系統丟到垃圾信夾的- -+ 以上!! 大家一起熱血的跟著WP噴跑吧!!!!!!!!!!go~ 你問我答開始 : Q : 圖片頁面(Portfolio Page)出不來？？ (@MiiA) A : 請照著下面的方法操作一次囉~(字看不清楚請點播放器上的切換全螢幕按鈕) var so = new SWFObject('http://file.kanafu.com/jwplayer/player.swf','mpl','470','317','9'); so.addParam('allowfullscreen','true'); so.addParam('allowscriptaccess','always'); so.addParam('wmode','opaque'); so.addVariable('file','http://file.kanafu.com/theme/zeropic/portfolio_page_.mp4'); so.addVariable('image','http://file.kanafu.com/theme/zeropic/portfolio_page.png'); so.addVariable('skin','http://file.kanafu.com/jwplayer/skins/modieus.zip'); so.write('mediaspace'); Q : 首頁可以換成圖片展示頁面(Portfolio [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript" src="http://js1.bloggerads.net/showbanner.aspx?blogid=20100807000030&amp;charset=utf-8"></script><h2>2011/02/04 Update</h2><br/>
加入：Related Posts By Category、AJAX Comments(willin)、Unlimited Level Nested Comments、SweetTitle、Imageresize、Index Page Style Select、Archives(SideBar) Toggle<br/>
更新：Tagcloud function寫法，Recent Comments 寫法，Blogrool 加favicon<br/>
註：更新後請依照functions.php裡註解做改動即可。<br/><br/>
<h2>FILE DOWNLOAD(檔案下載)</h2><br />檔案下載(tar/zip)：<br/><br/>Note: There is a file embedded within this post, please visit this post to download the file.<br/><div class="post_paypal"><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
		<input type="hidden" name="cmd" value="_s-xclick" />
		<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----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-----END PKCS7-----
		" />
		<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" />
		<img alt="" border="0" src="https://www.paypal.com/zh_HK/i/scr/pixel.gif" width="1" height="1" />
		</form></div><br/><br/>-2011/02/04 END<br/><br/>
在雜事爆多的星期一把這幾部影片拍完我覺得我真是太勇敢也太酷酷!!<br/><br/>
TO 三問的<font class="line">MiiA小姐</font>和Gravatar很繽紛的<font class="line">Bryan先生</font>還有很害羞的傳了4封聯絡表單給我的<font class="line">coli</font>同學，感謝你們喜歡<a href="http://kanafu.com/archives/457/">zero-pic</a>(鞠躬)。不過呢...這
裡要提醒下coli桑...下次<font class="line">傳一封就好</font>了...太多反而會被系統丟到垃圾信夾的- -+
<br/><br/>
以上!!
<br/><br/>
大家一起熱血的跟著WP噴跑吧!!!!!!!!!!go~
<br/><br/><br/>
你問我答開始 : 
<br/><br/><br/>
<h2>Q : 圖片頁面(Portfolio Page)出不來？？ (@MiiA)</h2>
<br/>
A : 請照著下面的方法操作一次囉~(字看不清楚請點播放器上的切換全螢幕按鈕)<br/><br/>
<script type='text/javascript' src='http://file.kanafu.com/jwplayer/swfobject.js'></script>
 
<div id='mediaspace'><a href="http://get.adobe.com/flashplayer/" target="new" title="This site requires the Adobe Flash Player "><img src="http://file.kanafu.com/jwplayer/flash.png" alt="This site requires the Adobe Flash Player " /></a></div>
 
<script type='text/javascript'>
  var so = new SWFObject('http://file.kanafu.com/jwplayer/player.swf','mpl','470','317','9');
  so.addParam('allowfullscreen','true');
  so.addParam('allowscriptaccess','always');
  so.addParam('wmode','opaque');
  so.addVariable('file','http://file.kanafu.com/theme/zeropic/portfolio_page_.mp4');
  so.addVariable('image','http://file.kanafu.com/theme/zeropic/portfolio_page.png');
  so.addVariable('skin','http://file.kanafu.com/jwplayer/skins/modieus.zip');
  so.write('mediaspace');
</script>
<br/><br/><br/>
<h2>Q :  首頁可以換成圖片展示頁面(Portfolio Page)嗎？ (@MiiA)</h2>
<br/>
A: <br/>
1-1 請下載<a title="page_portfolio.zip" href="http://file.kanafu.com/theme/zeropic/page_portfolio.zip">page_portfolio.zip</a>這個壓縮檔<br/>
1-2 將壓縮檔內的<font class="line">page_portfolio.php</font>上傳到zero-pic的theme dir裡<br/>
1-3 在後台新增一個page，模板的下拉選單裡選Portfolio Page<br/>
1-4 打上你的page title (內文部分請留空)<br/>
1-5 到<font class="line">設定</font>><font class="line">閱讀</font>><font class="line">首頁顯示</font>><font class="line">首頁</font>，旁邊的下拉選單找到你剛才打得page title後儲存設定
<br/><br/>
done~!!
<br/><br/><br/>
<h2>Q : 圖片可不可以改成自動適應文字區的寬度呢？ (@MiiA) </h2>
<br/>
A: <br/>
打開<font class="line">style.css</font>查找<br /><br/>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.post_content</span> img<span style="color: #6666ff;">.alignleft</span><span style="color: #00AA00;">,</span><span style="color: #6666ff;">.post_content</span> img<span style="color: #6666ff;">.alignnone</span><span style="color: #00AA00;">,</span><span style="color: #6666ff;">.post_content</span> img<span style="color: #6666ff;">.alignright</span><span style="color: #00AA00;">,</span><span style="color: #6666ff;">.post_content</span> img.aligncenter</pre></td></tr></table></div>


  <br />
往下找在<font class="line">margin-top:5px;</font>的後面<font class="line">}</font>的前面加入↓<br /><br/>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">max-width</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span>expression<span style="color: #00AA00;">&#40;</span>document<span style="color: #6666ff;">.body</span>.clientWidth&amp;gt<span style="color: #00AA00;">;</span><span style="color: #cc66cc;">300</span>?&amp;quot<span style="color: #00AA00;">;</span><span style="color: #933;">300px</span>&amp;quot<span style="color: #00AA00;">;:</span>&amp;quot<span style="color: #00AA00;">;</span>auto&amp;quot<span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span></pre></td></tr></table></div>



<br />
@ : 注意 - 此段code不符合<font class="line">W3C</font>!! 瀏覽器部分是<font class="line">ie6up</font>、<font class="line">ff</font>、<font class="line">Opera</font>、<font class="line">Safari</font>、<font class="line">Chrome</font>兼容。
<br />
如果很介意<font class="line">W3C</font>的捧油，請下載<a href="http://file.kanafu.com/theme/zeropic/img-resize.zip">img-resize.zip</a>這個壓縮檔，將裡面的JS上傳到zero-pic的theme dir後，打開<font class="line">single.php</font>將下面的code加入<font class="line">〈?php wp_head(); ?〉</font>的前方。<br />


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="javaspript" style="font-family:monospace;">&lt;script src=&quot;&lt;?php bloginfo('template_url'); ?&gt;/img-resize.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;</pre></td></tr></table></div>



<br/><br/>
<h2>Q : Gravatar的頭像可不可以改的小一點啊??? (@Bryan)</h2>
<br/>
A : <br/>
請打開<font class="line">functions.php</font>這個檔案，查找下面這段code<br/><br/>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;div class=&quot;avatar&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_avatar<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">,</span><span style="color: #000088;">$size</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'50'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;</pre></td></tr></table></div>


<br/><br/>
50的地方就是Gravatar的頭像大小囉...(px)<br/>
<br/><br/>
ok 先這樣... 我去寫企畫了掰掰有事請用力<font class="line">留言</font>吧~逼逼逼!!
<br/><br/><br/>
2010/08/21 update!↓
<br/><br/><br/>
<h2>Q : 要怎樣才可以把預設的portfolio選單拿掉呢？</h2>
<br/><br/>
請打開<font class="line">header.php</font>這個檔案，查找下面這段code<br/><br/>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;RSS&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('url'); ?&gt;</span></span>/?tag=portfolio&quot;&gt;Portfolio<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span></pre></td></tr></table></div>


<br/><br/>
然後拿掉它就OK囉<br/>
<br/><br/><br/>
<h2>另外 : 感謝提出指正的字體在簡體網站中顯示問題(過小and粗體無能)的奈維摩爾以及mind，已將更新版重新上傳，有需要的人請重新下載就可以囉~</h2>]]></content:encoded>
			<wfw:commentRss>http://kanafu.com/archives/470/feed</wfw:commentRss>
		<slash:comments>78</slash:comments>
<enclosure url="http://file.kanafu.com/theme/zeropic/portfolio_page_.mp4" length="3274669" type="video/mp4" />
		</item>
		<item>
		<title>用CSS減少美化網站的圖片數量</title>
		<link>http://kanafu.com/archives/466</link>
		<comments>http://kanafu.com/archives/466#comments</comments>
		<pubDate>Thu, 05 Aug 2010 14:20:52 +0000</pubDate>
		<dc:creator>娜娜子</dc:creator>
				<category><![CDATA[完美WEB進化論]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[imgblog]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[w3c]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[原創]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[教程]]></category>
		<category><![CDATA[網頁]]></category>
		<category><![CDATA[設計]]></category>

		<guid isPermaLink="false">http://kanafu.com/archives/466</guid>
		<description><![CDATA[@ : 常常我們寫一個頁面或者theme時，除去主要背景外，東一個按鈕西一個圖片的零零總總的加下來十幾張圖片總是跑不掉。這樣子不但會造成之後修改頁面時圖片要找很久很混亂，還有就是網頁讀取時拖速的問題。so，接下來要寫得主要就是將那些網頁裡用到的圖片全部集中在一起的方法。1. 首先想好頁面的排列架構，然後在FW裡大概的擺一下位置。@ : 如上圖，展示站台和KANAFU.COM分別是兩個鏈結，我希望它在點擊時會有顏色的變換，而LINK1、2、3則是一個小型導航選單，最下方則是一個單純的圖片展示(當然你也可以將它變換成鏈結)。2. 接下來打開FW來把剛才的圖片拖進來，做好選單的顏色調整後存成一張圖片(FW先別關，之後會用到)@ : 這一步的關鍵點在於圖層在圖片裡的排列，空白的部分(也就是不會被始用到的區塊)越少，做出來的圖片也越小，載入網站的速度相對就越快。然後上面因為是示範所以我就隨便排一下。3. 再來就是用網頁編輯器新增一個html和一個css(如果是DW、frontpage這種可視化的請先切換到code編輯模式)，我這裡用的是EmEditor，你也可以選擇你習慣的UltraEdit、PSPad、EditPad...叭啦叭啦什麼鬼的都無所謂，高興就好，如果都沒有的話就直接開記事本也OK。HTML的部分↓ 1 2 3 4 5 6 7 8 9 10 11 12 13 &#60;!DOCTYPE HTML PUBLIC &#34;-//W3C//DTD HTML 4.0 Transitional//EN&#34;&#62; &#60;html&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=UTF-8&#34;&#62; &#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34;./style.css&#34;&#62; &#60;title&#62;用CSS減少美化網站的圖片數量&#60;/title&#62; &#60;/head&#62; &#160; &#60;body&#62; &#60;div id=&#34;container&#34;&#62; &#60;/div&#62; &#60;/body&#62; &#60;/html&#62; CSS的部分↓ 1 2 3 4 5 [...]]]></description>
			<content:encoded><![CDATA[@ : 常常我們寫一個頁面或者theme時，除去主要背景外，東一個按鈕西一個圖片的零零總總的加下來十幾張圖片總是跑不掉。這樣子不但會造成之後修改頁面時圖片要找很久很混亂，還有就是網頁讀取時拖速的問題。so，接下來要寫得主要就是將那些<font class="line">網頁裡用到的圖片全部集中在一起的方法</font>。<br /><br /><br /><br /><h2>1. 首先想好頁面的排列架構，然後在FW裡大概的擺一下位置。</h2><br /><a rel="shadowbox" title="001" href="http://pic.kanafu.com/20100806/001.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/001.jpg" alt="001" /></a><br />@ : 如上圖，展示站台和KANAFU.COM分別是兩個鏈結，我希望它在點擊時會有顏色的變換，而LINK1、2、3則是一個小型導航選單，最下方則是一個單純的圖片展示(當然你也可以將它變換成鏈結)。<br /><br /><br /><h2>2. 接下來打開FW來把剛才的圖片拖進來，做好選單的顏色調整後存成一張圖片(FW先別關，之後會用到)</h2><br /><a rel="shadowbox" title="002" href="http://pic.kanafu.com/20100806/002.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/002_s.jpg" alt="002" /></a><br />@ : 這一步的關鍵點在於<font class="line">圖層在圖片裡的排列</font>，空白的部分(也就是不會被始用到的區塊)越少，做出來的圖片也越小，載入網站的速度相對就越快。然後上面因為是示範所以我就隨便排一下。<br /><br /><br /><h2>3. 再來就是用網頁編輯器新增一個html和一個css(如果是DW、frontpage這種可視化的請先切換到code編輯模式)，我這裡用的是EmEditor，你也可以選擇你習慣的UltraEdit、PSPad、EditPad...叭啦叭啦什麼鬼的都無所謂，高興就好，如果都沒有的話就直接開記事本也OK。</h2><br />HTML的部分↓


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=UTF-8&quot;</span>&gt;</span> 
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;./style.css&quot;</span>&gt;</span> 
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>用CSS減少美化網站的圖片數量<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></td></tr></table></div>


CSS的部分↓


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@charset &quot;utf-8&quot;;</span>
<span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/** body **/</span> 
body<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font</span> <span style="color: #00AA00;">:</span> <span style="color: #933;">8pt</span> Tahoma<span style="color: #00AA00;">,</span>verdana<span style="color: #00AA00;">,</span>Arial<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">word-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.8pt</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1.5</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span> <span style="color: #00AA00;">:</span>  <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#eee</span><span style="color: #00AA00;">;</span>   
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/** link **/</span>
a<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#777</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:active</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#bbb</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
  	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>   
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>


@ : 寫好會變成這樣↓<a rel="shadowbox" title="003" href="http://pic.kanafu.com/20100806/003.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/003_s.jpg" alt="003" /></a><br />@ : 上面的code是我替頁面寫的一些基本的樣式，這部份請<font class="line">自由發揮</font> ─ ─ ─<br /> @ : <font class="line">#container</font>這個DIV就是等等用來裝主要內容的容器，為了方便預覽CSS先加上<font class="line">背景屬性</font>。<br /><br /><br /><h2>4. 把鏈結、選單都加到#container裡，然後再新增一個ID為pic的div等等來擺圖片用。</h2><br />


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;container&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;展示站台&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;link_a&quot;</span>&gt;</span>展示站台<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;KanaFu.com&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;link_b&quot;</span>&gt;</span>KanaFu.com<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;menu&quot;</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Link1&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;link_1&quot;</span>&gt;</span>選單一<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Link2&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;link_2&quot;</span>&gt;</span>選單二<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Link3&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;link_3&quot;</span>&gt;</span>選單三<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pic&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>


@ : 寫好會變成這樣↓<a rel="shadowbox" title="004" href="http://pic.kanafu.com/20100806/004.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/004_s.jpg" alt="004" /></a><br /><br /><br /><h2>5. 回到FW裡已經存好的圖片，開始準備寫第一個"展示站台"的鏈結。</h2><br /><a rel="shadowbox" title="005" href="http://pic.kanafu.com/20100806/005.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/005.jpg" alt="005" /></a><br />@ : 如上圖，點一下需要的圖層，左下方的<font class="line">屬性</font>就會顯示出它的<font class="line">大小和位置</font>。<br /><br /><br /><h2>6. 切換到CSS部分，開始製作第一個"展示站台"的鏈結。</h2><br />


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>45
46
47
48
49
50
51
52
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#link_a</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">218px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">57px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-3px</span> <span style="color: #933;">-236px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>


@ : 稍微說一下上面的code : 
width和height分別是剛才在FW裡查到的<font class="line">長寬</font>，而background最後的-3px以及-236px就是查到的<font class="line">位置(x,y)</font>，前三行加起來就是在宣告 : <font class="line">我們只需要index.png這張圖片從座標3,236開始，大小是218x57的區塊</font>，至於display:block;屬性則是用來讓本身不帶<font class="line">區塊等級</font>的鏈結得以設置長寬，而最後兩行則是把鏈結文字<font class="line">隱藏</font>起來。<br />@ : 寫好以後就是這樣。↓<br /><a rel="shadowbox" title="006" href="http://pic.kanafu.com/20100806/006.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/006_s.jpg" alt="006" /></a><br /><br /><br /><h2>7. 接下來就是寫當滑鼠晃過鏈結時(a:hover)的樣式。</h2><br /><a rel="shadowbox" title="007" href="http://pic.kanafu.com/20100806/007.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/007_s.jpg" alt="007" /></a>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>53
54
55
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#link_a</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-309px</span> <span style="color: #933;">-233px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>


@ : 回到FW裡again，這次點要用來做<font class="line">hover</font>的圖層，一樣會顯示出長寬和位置。<br />@ : 在CSS裡宣告a:hover時展示的圖片位置。<br /><a rel="shadowbox" title="008" href="http://pic.kanafu.com/20100806/008.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/008_s.jpg" alt="008" /></a><br />@ : 如上圖，這樣第一個鏈結就完成了，然後用<font class="line">同樣的思路</font>寫第二個鏈結。


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>56
57
58
59
60
61
62
63
64
65
66
67
68
69
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#link_b</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">85px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">17px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-221px</span> <span style="color: #933;">-271px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">93px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">251px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_b</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-527px</span> <span style="color: #933;">-268px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>


<br /><br /><h2>8. 接下來是選單的部分，在第四步裡我們已經在html裡寫進了一個內含三個鏈結的DIV。</h2><br /><a rel="shadowbox" title="009" href="http://pic.kanafu.com/20100806/009.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/009_s.jpg" alt="009" /></a><br />@ : 先用前面的方法將<font class="line">DIV的背景</font>抓出來，以及分別將<font class="line">三個選單的鏈結</font>換作圖片。


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#menu</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">121px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-11px</span> <span style="color: #933;">-157px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_1</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-21px</span> <span style="color: #933;">-163px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_1</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-21px</span> <span style="color: #933;">-197px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_2</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-54px</span> <span style="color: #933;">-163px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_2</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-54px</span> <span style="color: #933;">-197px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_3</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-87px</span> <span style="color: #933;">-163px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_3</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-87px</span> <span style="color: #933;">-197px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>


@ : 寫好以後就是這樣。↓<br /><a rel="shadowbox" title="010" href="http://pic.kanafu.com/20100806/010.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/010_s.jpg" alt="010" /></a><br /><br /><br /><h2>9. 再來就是幫三個排排排站的鏈結乖乖躺下來。</h2><br /><a rel="shadowbox" title="011" href="http://pic.kanafu.com/20100806/011.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/011_s.jpg" alt="011" /></a><br />@ : 首先在FW裡將圖片裡的<font class="line">選單區塊</font>複製出來成一個<font class="line">新檔案</font>，然後一樣在屬性裡查找link1、2、3的座標位置。這裡要新開檔案的原因是因為我們要找的是link1、2、3以<font class="line">選單區塊的左上角</font>為基準點的座標。<br />@ : 然後在CSS增加<font class="line">position屬性</font>做定位。


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#menu</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">121px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-11px</span> <span style="color: #933;">-157px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">248px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">59px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_1</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-21px</span> <span style="color: #933;">-163px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_1</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-21px</span> <span style="color: #933;">-197px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_2</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-54px</span> <span style="color: #933;">-163px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_2</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-54px</span> <span style="color: #933;">-197px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_3</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-87px</span> <span style="color: #933;">-163px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">78px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_3</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-87px</span> <span style="color: #933;">-197px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>


@ : 寫好以後就是這樣。↓<a rel="shadowbox" title="012" href="http://pic.kanafu.com/20100806/012.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/012_s.jpg" alt="012" /></a><br />@ : 然後順便用<font class="line">老方法</font>把圖片的部分一起寫進去。


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>158
159
160
161
162
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#pic</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">340px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">167px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-157px</span> <span style="color: #933;">-44px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>


<a rel="shadowbox" title="013" href="http://pic.kanafu.com/20100806/013.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/013_s.jpg" alt="013" /></a><br />@ : 變成這樣↑<br /><br /><br /><h2>10. 用position屬性將元素的位置調整成想要的樣子。</h2><br />


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#link_a</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">218px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">57px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-3px</span> <span style="color: #933;">-236px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">57px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">29px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_a</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-309px</span> <span style="color: #933;">-233px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_b</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">85px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">17px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-221px</span> <span style="color: #933;">-271px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">93px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">251px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_b</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-527px</span> <span style="color: #933;">-268px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">121px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-11px</span> <span style="color: #933;">-157px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">248px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">59px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_1</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-21px</span> <span style="color: #933;">-163px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_1</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-21px</span> <span style="color: #933;">-197px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_2</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-54px</span> <span style="color: #933;">-163px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_2</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-54px</span> <span style="color: #933;">-197px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_3</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-87px</span> <span style="color: #933;">-163px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">78px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_3</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-87px</span> <span style="color: #933;">-197px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#pic</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">340px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">167px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #933;">-157px</span> <span style="color: #933;">-44px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">125px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">32px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>


@ : 分別在#link_a、#link_b、#menu、#pic裡加上<font class="line">position:absolute;</font>，然後用<font class="line">top</font>跟<font class="line">left</font>將它們調整到合適的位置。然後<font class="line">步驟三</font>裡我們已經在<font class="line">#container</font>的DIV裡加上了position: relative;，所以現在的基準點(0,0)就是從<font class="line">#container的左上角</font>計算起。<br /><br />@ : 調完之後把body裡的背景色一起改下↓<br /><a rel="shadowbox" title="014" href="http://pic.kanafu.com/20100806/014.jpg"><img class="wordimg" src="http://pic.kanafu.com/20100806/014_s.jpg" alt="014" /></a><br />噢噢...看起來和一開始在FW裡排得似乎還挺像的耶(廢話!阿不然排它是要幹嘛的...)<br />測試OK後就回到CSS將落落長的code稍微整理一下吧，能併的就併一併，讓載入的CSS稍微小一點也整齊一點。<br />@ : <font class="line">精簡過後</font>的CSS(好啦其實也沒有短到哪裡去...)↓


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@charset &quot;utf-8&quot;;</span>
<span style="color: #00AA00;">*</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/** body **/</span> 
body<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font</span> <span style="color: #00AA00;">:</span> <span style="color: #933;">8pt</span> Tahoma<span style="color: #00AA00;">,</span>verdana<span style="color: #00AA00;">,</span>Arial<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">word-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.8pt</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1.5</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span> <span style="color: #00AA00;">:</span>  <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#eee</span><span style="color: #00AA00;">;</span>   
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/** link **/</span>
a<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#777</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:active</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#bbb</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#container</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
  	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-200px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_a</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#link_b</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#menu</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#link_1</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#link_2</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#link_3</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#pic</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">./index.png</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_a</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-3px</span> <span style="color: #933;">-236px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">218px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">57px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">57px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">29px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_a</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-309px</span> <span style="color: #933;">-233px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_b</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-221px</span> <span style="color: #933;">-271px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">85px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">17px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">93px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">251px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_b</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-527px</span> <span style="color: #933;">-268px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-11px</span> <span style="color: #933;">-157px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">121px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">248px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">59px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_1</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-21px</span> <span style="color: #933;">-163px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_1</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-21px</span> <span style="color: #933;">-197px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_2</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-54px</span> <span style="color: #933;">-163px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_2</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-54px</span> <span style="color: #933;">-197px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_3</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-87px</span> <span style="color: #933;">-163px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">78px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#link_3</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-87px</span> <span style="color: #933;">-197px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#pic</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-157px</span> <span style="color: #933;">-44px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">340px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">167px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">125px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">32px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>


<br /><br /><br /><h2>最後的最後不免俗的...還是用了雙D兄弟(DEMO&amp;DOWNLOAD)來做個ENDING囉!</h2>
<br />展示/下載(DEMO&amp;DOWNLOAD) : <br /><br />
<a class="demo demo_ blank" href="http://file.kanafu.com/webdemo/20100806/" title="最終展示頁面">最終展示頁面</a> Note: There is a file embedded within this post, please visit this post to download the file.
<br /><br /><a class="blank" href="http://bit.ly/d8XP8g"><img
        src="http://www.w3.org/Icons/valid-html40"
        alt="Valid HTML 4.0 Transitional" height="31" width="88" /></a>
 <a class="blank" id="w_css" href="http://bit.ly/cPl7mr"><img style="border: 0pt none; width: 88px; height: 31px;" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!"/></a><br /><br />
註：<br />
1. DOWNLOAD裡的CSS使用的是<font class="line">未精簡過後的初始版</font>，一開始看這個應該會比較<font class="line">容易上手</font>這樣。<br />
2. 本次的示範非常榮幸的邀請到傳說中那個有點飄撇有點帥的<font class="line"><a href="http://ja.wikipedia.org/wiki/%E5%B0%9A%E7%8E%84" title="wiki" target="new">shogenism大叔</a></font>來當媽斗，所以請和我一起用<font class="line">最兇猛的鬼吼鬼叫</font>來表達對S大叔的敬愛~~~~~~
<br /><br /><br />
以上~]]></content:encoded>
			<wfw:commentRss>http://kanafu.com/archives/466/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>WordPress Theme│Zero-PIC</title>
		<link>http://kanafu.com/archives/457</link>
		<comments>http://kanafu.com/archives/457#comments</comments>
		<pubDate>Tue, 09 Mar 2010 17:20:44 +0000</pubDate>
		<dc:creator>娜娜子</dc:creator>
				<category><![CDATA[噴跑吧，WordPress！]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[imgblog]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主題]]></category>
		<category><![CDATA[免費]]></category>
		<category><![CDATA[兩欄]]></category>
		<category><![CDATA[原創]]></category>
		<category><![CDATA[模版]]></category>
		<category><![CDATA[首頁縮略圖]]></category>

		<guid isPermaLink="false">http://kanafu.com/?p=457</guid>
		<description><![CDATA[!!此版本已不再更新 請移步此區看最新版 !!此版本已不再更新 請移步此區看最新版 趁著這幾天閒下來，localhost/29的原形摳出來寫成了一個theme。zero-pic顧名思義就是零圖片的意思，老實說，我原本連JS也不想載入((純CSS最高！))，但為了巢狀留言的回覆部分設想不得已還是載了個comment-reply.js，搞到最後索性連wordpress自帶的thickbox也一起整了進去。所以，如果要說這個theme最大的好處，應該就是速度"無敵爆炸霹靂快"這樣，畢竟只加了兩個JS而且是只在有用到的地方才寫。另外由於個人寫作習慣，所以區塊跟區塊間都有做code的標註，有興趣的人可以拆開來看看大家研究研究這樣。然後因為我的空間很弱沒有辦法放demo site，所以就只好來個看圖說說theme(點小圖可看原始版!!)。首頁(INDEX PAGE)↑最上面那張就是index page，預設兩欄。右上方的選單主要是從page裡抓出來的，預設是只要新增頁面就會增加選項。如果有不想要列出的頁面，打開header.php搜尋 1 exclude= 在=的後面輸入要排除的頁面ID，如果有多個頁面不要列出在選單裡的話，請用半形標點符號的逗號將ID與ID區隔開來。例如： 1 exclude=1,2,3 上面的寫入結果就是ID1、2、3的這三個頁面都不會再選單裡列出來。摘要的部分我是直接從全文擷取字數(中文OK)，字數更改方式如下。index.php裡搜尋 1 0, 300 改300那邊。至於縮圖就是用wordpress自帶的post-thumbnails寫的，考慮過幾個Script ，但只要一想到將外連圖片緩存到主機->縮圖->刪除原始大圖的這個過程，就不得不又擔心起爆空間的問題。當然另外一個更大的問題就是...我懶！總之最後我就是用自帶縮圖了，所以也意味著這個theme也是2.9up。如果在寫文章時沒有設定縮圖的話，則是這樣。單篇文章(SINGLE PAGE)接下來的single post page...還是兩欄，沒有其他選擇，因為我是兩欄控，當然你高興改成三四五六七八欄我也沒有甚麼所謂就是了。巢狀留言的部分我的CSS只有寫到第二層，想要加到兩百層的人可能要記得改一下CSS。而若要使用thcikbox請記得在圖片的連結裡加上 1 class=&#34;thickbox&#34; 然後是一些內文的樣式，這是我從官網上COPY下來的文章範本。 作品集(PORTFOLIO PAGE)再過來就是portfolio page的部分，也可以當成相本，但我個人是覺得用WP做相本在管理上手會很痠就是了(除非你照片不多)。這裡我是抓tag寫的，也就是說當你想要將文章收進portfolio page裡時，就要加上portfolio這個tag，而portfolio這個tag在頁面上(single的tag列表、側欄的tag clound)我把它排除掉了，避免造成一些在像是tag clound裡的portfolio會變得無敵霹靂大的BUG。portfolio page的文章列表，主要是顯示圖片跟摘要，游標滑過時才會出現標題，側欄的portfolio則是隨機抽出10篇。 如果想要修改Random Portfolio的數量，請打開404.php、search.php、sidebar.php這三個檔案搜尋 1 showposts=10 將10改成要顯示的數量。留言版(GUESTBOOK)zero-pic有自帶一個用page寫的留言版。可選擇一欄(Guestbook - One Column)或兩欄(Guestbook - Two Column)，經由建立page時選擇頁面模板(Template)做設定。 如果不想要留言版的話，不要建立留言page便OK。預設頁面模版(PAGE TEMPLATE)建立其他page時同樣則也可以選擇一欄或者兩欄，當中又各分為有無留言引用列表，同樣是經由選擇Template決定。page模版對照說明： 1 2 3 4 Page - One Column：一欄(下圖左一) Page - [...]]]></description>
			<content:encoded><![CDATA[<script type="text/javascript" src="http://js1.bloggerads.net/showbanner.aspx?blogid=20100807000030&amp;charset=utf-8"></script><br/>
<h2>!!此版本已不再更新 請移步<a href="http://kanafu.com/archives/470">此區</a>看最新版</h2><br/><a title="Index Page" rel="shadowbox" href="http://pic.kanafu.com/20100310/01.png"><img class="wordimg" src="http://pic.kanafu.com/m/20100310.png" alt="Index Page" /></a><br/><br/>
<h2>!!此版本已不再更新 請移步<a href="http://kanafu.com/archives/470">此區</a>看最新版</h2>
<br/><br/>趁著這幾天閒下來，<font class="line">localhost/29</font>的原形摳出來寫成了一個theme。<font class="line">zero-pic</font>顧名思義就是零圖片的意思，老實說，我原本連JS也不想載入((純CSS最高！))，但為了巢狀留言的回覆部分設想不得已還是載了個<font class="line">comment-reply.js</font>，搞到最後索性連wordpress自帶的<font class="line">thickbox</font>也一起整了進去。<br/><br/>所以，如果要說這個theme最大的好處，應該就是速度<font class="line">"無敵爆炸霹靂快"</font>這樣，畢竟只加了兩個JS而且是只在有用到的地方才寫。另外由於個人寫作習慣，所以區塊跟區塊間都有做code的標註，有興趣的人可以拆開來看看大家研究研究這樣。<br/><br/>然後因為我的空間很弱沒有辦法放demo site，所以就只好來個看圖說說theme<font class="line">(點小圖可看原始版!!)</font>。<br/><br/><br/><br/><h2>首頁(INDEX PAGE)</h2><br/>↑最上面那張就是index page，<font class="line">預設兩欄</font>。<br /><a title="Page Menu" rel="shadowbox" href="http://pic.kanafu.com/20100310/02.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/02.png" alt="Page Menu" /></a><br/>右上方的選單主要是從page裡抓出來的，預設是只要新增頁面就會增加選項。如果有不想要列出的頁面，打開<font class="line">header.php</font>搜尋


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">exclude<span style="color: #339933;">=</span></pre></td></tr></table></div>


在<font class="line">=</font>的後面輸入要排除的<font class="line">頁面ID</font>，如果有多個頁面不要列出在選單裡的話，請用<font class="line">半形標點符號的逗號</font>將ID與ID區隔開來。例如：


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">exclude<span style="color: #339933;">=</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span></pre></td></tr></table></div>


上面的寫入結果就是ID1、2、3的這三個頁面都不會再選單裡列出來。<br /><br />摘要的部分我是直接從全文擷取字數(中文OK)，字數更改方式如下。<br/><br/>index.php裡搜尋


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;">0, 300</pre></td></tr></table></div>


改<font class="line">300</font>那邊。<br/><br/>至於縮圖就是用wordpress自帶的<font class="line">post-thumbnails</font>寫的，考慮過幾個Script ，但只要一想到將外連圖片<font class="line">緩存到主機->縮圖->刪除原始大圖</font>的這個過程，就不得不又擔心起爆空間的問題。當然另外一個更大的問題就是...<font class="line">我懶！</font>總之最後我就是用自帶縮圖了，所以也意味著這個theme也是<font class="line">2.9up</font>。<br/><br/>如果在寫文章時沒有設定縮圖的話，則是這樣。<br/><a rel="shadowbox" title="Index Page With No Thumbnail" href="http://pic.kanafu.com/20100310/03.png"><img alt="Index Page With No Thumbnail" width="470" height="286" src="http://pic.kanafu.com/20100310/03.jpg" /></a><h2>單篇文章(SINGLE PAGE)</h2><br/>接下來的single post page...還是兩欄，沒有其他選擇，因為我是<font class="line">兩欄控</font>，當然你高興改成三四五六七八欄我也沒有甚麼所謂就是了。<br/><a title="Single Post Page" rel="shadowbox" href="http://pic.kanafu.com/20100310/04.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/04.jpg" alt="Single Post Page" /></a><br/><font class="line">巢狀留言</font>的部分我的CSS只有寫到<font class="line">第二層</font>，想要加到兩百層的人可能要記得改一下CSS。<br/><br/>而若要使用<font class="line">thcikbox</font>請記得在圖片的連結裡加上


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;thickbox&quot;</span></pre></td></tr></table></div>


<a title="Single Post Page - Thickbox" rel="shadowbox" href="http://pic.kanafu.com/20100310/05.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/05.jpg" alt="Single Post Page - Thickbox" width="450" height="261" /></a><br/>然後是一些內文的樣式，這是我從官網上COPY下來的文章範本。<br/><a title="Single Post Page - Elements" rel="shadowbox" href="http://pic.kanafu.com/20100310/06.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/07.jpg" alt="Single Post Page - Elements" /></a> <a title="Worth A Thousand Words" rel="shadowbox" href="http://pic.kanafu.com/20100310/08.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/08.jpg" alt="Single Post Page - Worth A Thousand Words" /></a><br/><br/><br/><h2>作品集(PORTFOLIO PAGE)</h2><br/>再過來就是portfolio page的部分，也可以當成<font class="line">相本</font>，但我個人是覺得用WP做相本在管理上<font class="line">手會很痠</font>就是了(除非你照片不多)。這裡我是抓tag寫的，也就是說當你想要將文章收進portfolio page裡時，就要加上<font class="line">portfolio</font>這個tag，而portfolio這個tag在頁面上(single的tag列表、側欄的tag clound)我把它排除掉了，避免造成一些在像是tag clound裡的portfolio會變得<font class="line">無敵霹靂大</font>的BUG。<br/><a title="Portfolio Page" rel="shadowbox" href="http://pic.kanafu.com/20100310/09.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/09.jpg" alt="Portfolio Page" width="450" height="318" /></a><br/>portfolio page的文章列表，主要是顯示<font class="line">圖片跟摘要</font>，游標滑過時才會出現<font class="line">標題</font>，側欄的portfolio則是隨機抽出<font class="line">10篇</font>。<br/><a title="Portfolio Page - Thumbnail Hover" rel="shadowbox" href="http://pic.kanafu.com/20100310/10.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/10.jpg" alt="Portfolio Page - Thumbnail Hover" /></a> <a title="Portfolio - Sidebar" rel="shadowbox" href="http://pic.kanafu.com/20100310/11.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/11.jpg" alt="Portfolio Page - Sidebar" /></a><br />如果想要修改Random Portfolio的數量，請打開<font class="line">404.php</font>、<font class="line">search.php</font>、<font class="line">sidebar.php</font>這三個檔案搜尋


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">showposts<span style="color: #339933;">=</span><span style="color: #cc66cc;">10</span></pre></td></tr></table></div>


將<font class="line">10</font>改成要顯示的數量。<br/><br /><br /><h2>留言版(GUESTBOOK)</h2><br /><font class="line">zero-pic</font>有自帶一個用page寫的<font class="line">留言版</font>。可選擇一欄(<font class="line">Guestbook - One Column</font>)或兩欄(<font class="line">Guestbook - Two Column</font>)，經由建立page時選擇<font class="line">頁面模板(Template)</font>做設定。<br/><a title="Guestbook - Two Column" rel="shadowbox" href="http://pic.kanafu.com/20100310/12.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/12.jpg" alt="Guestbook - Two Column" /></a> <a title="Guestbook - One Column" rel="shadowbox" href="http://pic.kanafu.com/20100310/13.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/13.jpg" alt="Guestbook - One Column" /></a><br/>如果不想要留言版的話，不要建立留言page便OK。<br/><br/><br /><h2>預設頁面模版(PAGE TEMPLATE)</h2><br />建立其他page時同樣則也可以選擇一欄或者兩欄，當中又各分為<font class="line">有無留言引用列表</font>，同樣是經由選擇<font class="line">Template</font>決定。page模版對照說明：


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;">Page - One Column：一欄(下圖左一)
Page - One Column No Comment：一欄無留言引用列表(下圖左二)
Page -  Two Column：兩欄(下圖右二)
Page - Two Column No Comment：兩欄無留言引用列表(下圖右一)</pre></td></tr></table></div>


<a title="Page - One Column" rel="shadowbox" href="http://pic.kanafu.com/20100310/14.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/14.jpg" alt="Page - One Column" /></a> <a title="Page - One Column No Comment" rel="shadowbox" href="http://pic.kanafu.com/20100310/15.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/15.jpg" alt="Page - One Column No Comment" /></a> <a title="Page -  Two Column" rel="shadowbox" href="http://pic.kanafu.com/20100310/16.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/16.jpg" alt="Page -  Two Column" /></a> <a title="Page - Two Column No Comment" rel="shadowbox" href="http://pic.kanafu.com/20100310/17.png"><img class="wordimg" src="http://pic.kanafu.com/20100310/17.jpg" alt="Page - Two Column No Comment" /></a><br/><br/><br /><h2>TIP(小補充)</h2><br />最後就是<font class="line">404page.php</font>、<font class="line">search.php</font> 這兩個檔案的側欄部分是獨立的，不受<font class="line">sidebar.php</font>的控制。<br/><br/><br/>瀏覽器支援：<font class="line">Safari</font>、<font class="line">Opera</font>、<font class="line">firefox</font>、<font class="line">Google chrome</font>、<font class="line">IE5.5up</font><br/>
截圖拍攝環境：<font class="line">1024x768</font>、<font class="line">firefox</font>。<br/>WP版本支援：<font class="line">2.9up</font>。<br/><br/><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /> <img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /><br/><br/><br/><h2>FILE DOWNLOAD(檔案下載)</h2><br />檔案下載(tar/zip)：<br/><br/>Note: There is a file embedded within this post, please visit this post to download the file.<br/><div class="post_paypal"><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
		<input type="hidden" name="cmd" value="_s-xclick" />
		<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----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-----END PKCS7-----
		" />
		<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" />
		<img alt="" border="0" src="https://www.paypal.com/zh_HK/i/scr/pixel.gif" width="1" height="1" />
		</form></div><br/><br/><h2>!!此版本已不再更新 請移步<a href="http://kanafu.com/archives/470">此區</a>看最新版</h2><br/><br/>]]></content:encoded>
			<wfw:commentRss>http://kanafu.com/archives/457/feed</wfw:commentRss>
		<slash:comments>70</slash:comments>
		</item>
	</channel>
</rss>

