<?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>MbDmt網智</title>
	<atom:link href="http://blogger.mbdmt.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://blogger.mbdmt.com</link>
	<description>網頁設計相關的技術文章</description>
	<lastBuildDate>Mon, 26 Apr 2010 12:22:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>在godaddy安裝F2blog</title>
		<link>http://blogger.mbdmt.com/?p=138</link>
		<comments>http://blogger.mbdmt.com/?p=138#comments</comments>
		<pubDate>Sat, 17 Apr 2010 00:25:23 +0000</pubDate>
		<dc:creator>mbdmt chino</dc:creator>
				<category><![CDATA[php & mysql]]></category>
		<category><![CDATA[F2blog]]></category>
		<category><![CDATA[godaddy]]></category>

		<guid isPermaLink="false">http://blogger.mbdmt.com/?p=138</guid>
		<description><![CDATA[在godaddy上安裝F2blog出現500 internal server error
還好找到解決方式嚕~]]></description>
			<content:encoded><![CDATA[<p>最近幫客戶安裝F2blog這個部落格程式，主機是用godaddy的</p>
<p>由於是搬家過去，所以整個備份上船很多檔案附件</p>
<p>終於安裝完畢，打開首頁之後就無言了</p>
<p>出現500 internal server error</p>
<p>後台倒是可以正常進入</p>
<p>改了一些樣板及靜態化也不行</p>
<p>目錄權限也對</p>
<p>後來想到是不是php版本問題，但是我原來的都是php5+mysql5一樣的</p>
<p>反正就是弄很久</p>
<p>最後還是去godaddy那裡看一下是不是選php4看看</p>
<p>結果發現godaddy現在變成有四種版本可選</p>
<p>php4 fastcgi<br />
php5 fastcgi (預設到這個)<br />
php4<br />
php5</p>
<p>因為不想用godaddy php4 版，因為它預設沒有編碼轉換的支援(icnov)<br />
改選了最後一個php5 試試看</p>
<p>改了以後，頁面可以開了，但是左選分類怎麼點都回到首頁，</p>
<p>於是選了php4</p>
<p>結果看前台就一切OK</p>
<p>這個應該沒用到iconv編碼之類的吧，總之解決了就好~</p>
<p>所以用godaddy如果遇到500 error改改版本應該就解決了</p>
<p>不知道為什麼選fastCGI就不能用</p>
<p>花了大半天真的很想說&#8230;<br />
看看看看看看看看看看看看!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogger.mbdmt.com/?feed=rss2&amp;p=138</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>讓Facebook分享連結時可以顯示小圖示</title>
		<link>http://blogger.mbdmt.com/?p=127</link>
		<comments>http://blogger.mbdmt.com/?p=127#comments</comments>
		<pubDate>Mon, 15 Mar 2010 04:47:45 +0000</pubDate>
		<dc:creator>mbdmt chino</dc:creator>
				<category><![CDATA[HTML & JAVASCRIPT]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://blogger.mbdmt.com/?p=127</guid>
		<description><![CDATA[現在很流行的Facebook ，現在幾乎要做活動網站或部落格幾乎都會有分享連結
要怎麼讓你的網頁能顯示你要的推荐內容，請看這篇~~]]></description>
			<content:encoded><![CDATA[<p>現在很流行的Facebook ，現在幾乎要做活動網站或部落格幾乎都會有分享連結<br />
Facebook通常是用如下的連結做推薦</p>
<pre class="brush: xml;">

http://www.facebook.com/share.php?u=分享網址&amp;t=網頁標題
</pre>
<p>但是實際上連過去以後 FB會自動從分享網址搜尋 他要的訊息，不一定會顯示你指定的標題</p>
<p>所以你必須在頁面上做一些語法標示，可以出現標題、文案和圖示，用以下的語法可以做到</p>
<p>讓FB抓到你要的推荐資料，記得這些是加在&lt;/head&gt;前面</p>
<pre class="brush: xml;">
&lt;meta name=&quot;title&quot; content=&quot;網頁標題會顯示粗體&quot; /&gt;
&lt;meta name=&quot;description&quot; content=&quot;網頁說明文案&quot; /&gt;
&lt;link rel=&quot;image_src&quot; type=&quot;image/jpeg&quot; href=&quot;要顯示的圖檔網址.jpg&quot; /&gt;
</pre>
<p>圖片的大小寬度是100px內，在大的話，FB會縮圖，圖片就可能會變形。</p>
<p> <a href="http://blogger.mbdmt.com/wp-content/uploads/2010/03/demo_linkFB1.jpg"><img class="alignnone size-full wp-image-134" title="demo_linkFB" src="http://blogger.mbdmt.com/wp-content/uploads/2010/03/demo_linkFB1.jpg" alt="" width="600" height="350" /></a></p>
<div><code>效果會像這樣</code></div>
<div><code>如果要多張圖的話</code></div>
<div><code>建議另外寫不同的方式來讓FB讀到圖片</code></div>
<div><code>就是將img圖片寫在&lt;li&gt;&lt;/li&gt;標籤裏面，效果是比較好的，且圖片要用全網址http://開頭，不要只用xxx.jpg<!--formatted--></code></div>
<div><code>對於其他類似的像murmur.tw也可以抓的到，比較通用。</code><code><br />
</code></div>
<div><a href="http://blogger.mbdmt.com/wp-content/uploads/2010/03/demo_mur1.jpg"><img class="alignnone size-full wp-image-133" title="demo_mur" src="http://blogger.mbdmt.com/wp-content/uploads/2010/03/demo_mur1.jpg" alt="" width="600" height="303" /></a></div>
<div><code>全Flash的話可以圖片把它定義在一個div區塊設隱藏css語法display:none;</code></div>
<div><code>圖片一定要在flash前面喔</code></div>
<div>以上給大家做參考嚕~~</div>
]]></content:encoded>
			<wfw:commentRss>http://blogger.mbdmt.com/?feed=rss2&amp;p=127</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Calendar 日期下拉選擇控件</title>
		<link>http://blogger.mbdmt.com/?p=112</link>
		<comments>http://blogger.mbdmt.com/?p=112#comments</comments>
		<pubDate>Thu, 11 Feb 2010 03:57:03 +0000</pubDate>
		<dc:creator>mbdmt chino</dc:creator>
				<category><![CDATA[HTML & JAVASCRIPT]]></category>
		<category><![CDATA[Calendar]]></category>

		<guid isPermaLink="false">http://blogger.mbdmt.com/?p=112</guid>
		<description><![CDATA[這款下拉日期選擇的控件是我找了好久，覺得非常好用

他可以很快的下拉年份和月份並選擇，我個人在修改過讓它可以在其他瀏覽器正常顯示

並且加了幾個顏色的設定可以在不同網站色系調整使用自行配色。
]]></description>
			<content:encoded><![CDATA[<p><strong>Calendar 日期下拉選擇控件</strong></p>
<p>這款下拉日期選擇的控件是我找了好久，覺得非常好用</p>
<p>他可以很快的下拉年份和月份並選擇，我個人在修改過讓它可以在其他瀏覽器正常顯示</p>
<p>並且加了幾個顏色的設定可以在不同網站色系調整使用自行配色。</p>
<p>另外這款並沒有把CSS分出來<br />
我個人懶的弄<br />
這樣應該不錯了~</p>
<p>// 版權說明<br />
// written by Tan Ling Wee on 2 Dec 2001<br />
// last updated 20 June 2003<br />
// email : fuushikaden@yahoo.com</p>
<p>// 修改版 2010/02/10 by chino lin (<a href="http://blogger.mbdmt.com/" target="_blank">http://blogger.mbdmt.com/</a>)<br />
// 支援IE6.7.8、Firefox 3.x、google chrome，加上顏色的設定值</p>
<p>=====================================================<br />
<strong>Calendar 日期下拉選擇控件 預覽圖:</strong><br />
=====================================================</p>
<p><a href="http://blogger.mbdmt.com/wp-content/uploads/2010/02/demo.gif"><img class="alignnone size-full wp-image-113" title="日期控件demo" src="http://blogger.mbdmt.com/wp-content/uploads/2010/02/demo.gif" alt="" width="440" height="706" /></a></p>
<p>=====================================================<br />
<strong>Calendar 日期下拉選擇控件 安裝方式:</strong><br />
=====================================================</p>
<p>1.js程式放到&lt;BODY&gt;之前(路徑要正確)</p>
<pre class="brush: jscript;">&lt;script language=&quot;JavaScript&quot; src=&quot;calendar/calendar.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</pre>
<p>2.文字框加入<code>onclick</code>代碼</p>
<pre class="brush: xml;">&lt;input onclick=&quot;popUpCalendar(this, this,'yyyy-mm-dd')&quot; readonly=&quot;readonly&quot; size=&quot;10&quot; name=&quot;startdate&quot; /&gt;</pre>
<p>yyyy-mm-dd 格式可自行調整</p>
<p>readonly=』readonly』 加這個會鎖住輸入框不能自填，一定用選擇的</p>
<p>3.其他選項設定(非必要)</p>
<p>1) 用文字編輯器打開calendar/calendar.js<br />
2) 找到一些設定值並調整</p>
<pre class="brush: xml;">var menubgcolor = &quot;#A9A9A9&quot; //選單背景色
var menubordercolor = &quot;#CFCFCF&quot; //選單線框色
var menubordercolor2 = &quot;#F6F6F6&quot; //hover選單線框色
var startAt = 1 // 0 - sunday ; 1 - monday 一週開頭星期幾?
var showToday = 1 // 0 - don't show; 1 - show 是否顯示當天日期
var imgDir = &quot;calendar/&quot; // directory for images ... e.g. var imgDir=&quot;img/&quot; 本控件相關圖片路徑</pre>
<p> </p>
<p>完成嚕~~!</p>
<p>=====================================================<br />
<strong>Calendar 日期下拉選擇控件 DEMO:</strong><br />
=====================================================</p>
<p><a href="http://www.mbdmt.com/calendar/" target="_blank">http://www.mbdmt.com/calendar/</a></p>
<p>下載完整程式</p>
<p><a href="http://blogger.mbdmt.com/wp-content/uploads/2010/02/calendar.rar">Calendar 日期下拉選擇控件</a></p>
<p>本網頁教學由 chino lin (<a href="http://blogger.mbdmt.com/" target="_blank">http://blogger.mbdmt.com</a>) 製作<br />
版權為原作者所有</p>
]]></content:encoded>
			<wfw:commentRss>http://blogger.mbdmt.com/?feed=rss2&amp;p=112</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>驗證輸入光標是否在輸入框上</title>
		<link>http://blogger.mbdmt.com/?p=110</link>
		<comments>http://blogger.mbdmt.com/?p=110#comments</comments>
		<pubDate>Wed, 27 Jan 2010 13:55:20 +0000</pubDate>
		<dc:creator>mbdmt chino</dc:creator>
				<category><![CDATA[HTML & JAVASCRIPT]]></category>

		<guid isPermaLink="false">http://blogger.mbdmt.com/?p=110</guid>
		<description><![CDATA[
&#60;input name=&#34;idname&#34; type=&#34;text&#34;  id=&#34;idname&#34; size=&#34;10&#34;&#62;

if(document.activeElement.id   ==   &#34;idname&#34;){
......
}

]]></description>
			<content:encoded><![CDATA[<pre class="brush: xml;">
&lt;input name=&quot;idname&quot; type=&quot;text&quot;  id=&quot;idname&quot; size=&quot;10&quot;&gt;

if(document.activeElement.id   ==   &quot;idname&quot;){
......
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blogger.mbdmt.com/?feed=rss2&amp;p=110</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>反查IP位置上已有設定的網址名稱</title>
		<link>http://blogger.mbdmt.com/?p=103</link>
		<comments>http://blogger.mbdmt.com/?p=103#comments</comments>
		<pubDate>Wed, 20 Jan 2010 11:00:30 +0000</pubDate>
		<dc:creator>mbdmt chino</dc:creator>
				<category><![CDATA[好用軟體推薦]]></category>
		<category><![CDATA[IP查詢]]></category>

		<guid isPermaLink="false">http://blogger.mbdmt.com/?p=103</guid>
		<description><![CDATA[如果只有IP位置，可以查看看這個IP有多少個網址在使用
還有IP主機所在國家/單位，連線品質(這個僅供參考了)
這個還不錯
http://www.haoso8.cn
如果上面找不到可以試試這個
http://ip.wen.la
如果都找不到，那可能就是網址設定方式不同
可以試試從網址查回IP，看是不是有一致~
]]></description>
			<content:encoded><![CDATA[<p>如果只有IP位置，可以查看看這個IP有多少個網址在使用<br />
還有IP主機所在國家/單位，連線品質(這個僅供參考了)</p>
<p>這個還不錯<br />
<a title="IPOKEY" href="http://www.haoso8.cn" target="_blank">http://www.haoso8.cn</a></p>
<p>如果上面找不到可以試試這個<br />
<a href="http://ip.wen.la" target="_blank">http://ip.wen.la</a></p>
<p>如果都找不到，那可能就是網址設定方式不同<br />
可以試試從網址查回IP，看是不是有一致~</p>
]]></content:encoded>
			<wfw:commentRss>http://blogger.mbdmt.com/?feed=rss2&amp;p=103</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yahoo奇摩2009年度客戶訪談實錄</title>
		<link>http://blogger.mbdmt.com/?p=99</link>
		<comments>http://blogger.mbdmt.com/?p=99#comments</comments>
		<pubDate>Wed, 20 Jan 2010 09:59:56 +0000</pubDate>
		<dc:creator>mbdmt chino</dc:creator>
				<category><![CDATA[行銷創意]]></category>
		<category><![CDATA[網路行銷]]></category>

		<guid isPermaLink="false">http://blogger.mbdmt.com/?p=99</guid>
		<description><![CDATA[這是yahoo找一些企業主管訪談影片
雖然大部份在推薦yahoo行銷，但是也有不錯的口語可以學習 ( 蠻多人提到 活動推廣的廣度、深度和精準度 這些詞彙，聽起來是蠻籠統的，顆顆~)
推薦大家有空可以看看
http://tw.emarketing.yahoo.com/ems2/case/monthly/09recommend.php?menu_tree=C&#38;menu_sub_tree=a
]]></description>
			<content:encoded><![CDATA[<p>這是yahoo找一些企業主管訪談影片</p>
<p>雖然大部份在推薦yahoo行銷，但是也有不錯的口語可以學習 ( 蠻多人提到 活動推廣的廣度、深度和精準度 這些詞彙，聽起來是蠻籠統的，顆顆~)</p>
<p>推薦大家有空可以看看</p>
<p><a href="http://tw.emarketing.yahoo.com/ems2/case/monthly/09recommend.php?menu_tree=C&amp;menu_sub_tree=a" target="_blank">http://tw.emarketing.yahoo.com/ems2/case/monthly/09recommend.php?menu_tree=C&amp;menu_sub_tree=a</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogger.mbdmt.com/?feed=rss2&amp;p=99</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>滑鼠移動到物在下面件顯示一個區塊(jquery版)</title>
		<link>http://blogger.mbdmt.com/?p=90</link>
		<comments>http://blogger.mbdmt.com/?p=90#comments</comments>
		<pubDate>Sun, 17 Jan 2010 06:10:16 +0000</pubDate>
		<dc:creator>mbdmt chino</dc:creator>
				<category><![CDATA[HTML & JAVASCRIPT]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://blogger.mbdmt.com/?p=90</guid>
		<description><![CDATA[如果要指定某一個容器想要做mouseover顯示另一個區塊的效果，那就可以參考這篇
有範例可以參考~]]></description>
			<content:encoded><![CDATA[<p>如果要指定某一個容器想要做mouseover顯示另一個區塊的效果，那就可以參考這篇<br />
先看圖示<br />
<a href="http://blogger.mbdmt.com/wp-content/uploads/2010/01/mouseover.gif"><img class="alignnone size-full wp-image-91" title="mouseover" src="http://blogger.mbdmt.com/wp-content/uploads/2010/01/mouseover.gif" alt="" width="434" height="314" /></a></p>
<p>語法如下:</p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;mouseover_jquery&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
.goods {
	background-color: #FF9900;
	margin: 10px;
	float: left;
	height: 100px;
	width: 100px;
	position: relative;
}
#gshow {
	position: absolute;
	display:none;
	height: 100px;
	width: 100px;
	top: 200px;
	left: 40px;
         background-image: url(images/xxxxx.gif);//無效背景圖
}
.out {
	height:100%;
	width: 440px;
	position: relative;
	overflow-x: hidden;
	overflow-y:auto;
	margin: 15px;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
--&gt;
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
function gover(object,shobject) {

	var gshowf=document.getElementById(object);
	var gposition = $('#'+object).offset(); //物件座標xy
	var gx = gposition.left;
	var gy = gposition.top;

	var gshowoj=document.getElementById(shobject);
	gshowoj.style.position='absolute';
	gshowoj.style.top=(gy+100)+'px';
	gshowoj.style.left=gx+'px';
	gshowoj.style.display=&quot;block&quot;;

}
function gout(object) {
	document.getElementById(object).style.display=&quot;none&quot;;
}
function gover2(object) {
	document.getElementById(object).style.display=&quot;block&quot;;
}
//--&gt;
&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;
&lt;div id=&quot;out&quot; class=&quot;out&quot;&gt;
&lt;div class=&quot;goods&quot; id=&quot;g1&quot; onmouseover=&quot;gover('g1','gshow')&quot; onmouseout=&quot;gout('gshow')&quot;&gt; class &quot;goods&quot; 的內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot; id=&quot;g2&quot; onmouseover=&quot;gover('g2','gshow')&quot; onmouseout=&quot;gout('gshow')&quot;&gt; class &quot;goods&quot; 的內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot; id=&quot;g3&quot; onmouseover=&quot;gover('g3','gshow')&quot; onmouseout=&quot;gout('gshow')&quot;&gt; class &quot;goods&quot; 的內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot; id=&quot;g4&quot; onmouseover=&quot;gover('g4','gshow')&quot; onmouseout=&quot;gout('gshow')&quot;&gt; class &quot;goods&quot; 的內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot; id=&quot;g5&quot; onmouseover=&quot;gover('g5','gshow')&quot; onmouseout=&quot;gout('gshow')&quot;&gt; class &quot;goods&quot; 的內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot; id=&quot;g6&quot; onmouseover=&quot;gover('g6','gshow')&quot; onmouseout=&quot;gout('gshow')&quot;&gt; class &quot;goods&quot; 的內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; class &quot;goods&quot; 的內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; class &quot;goods&quot; 的內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; class &quot;goods&quot; 的內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; class &quot;goods&quot; 的內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; class &quot;goods&quot; 的內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; class &quot;goods&quot; 的內容放在這裡&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;gshow&quot; onmouseover=&quot;gover2('gshow')&quot; onmouseout=&quot;gout('gshow')&quot;&gt;&lt;img id=&quot;bjimg&quot; border=1 src=&quot;mbmail.gif&quot; /&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>補充:<br />
IE下mouseover在DIV上，如果無指定背景色或背景圖，則一定要移動在裡面的文字或圖才會有效<br />
但如果你是希望整塊DIV大小都能有效被觸碰，又希望DIV物無色透明，那就是指定一張無效背景圖即可</p>
<p>下載範例檔<br />
<a rel="attachment wp-att-94" href="http://blogger.mbdmt.com/?attachment_id=94">mouseover_jquery</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogger.mbdmt.com/?feed=rss2&amp;p=90</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自動判斷容器高度是否該顯示捲軸</title>
		<link>http://blogger.mbdmt.com/?p=78</link>
		<comments>http://blogger.mbdmt.com/?p=78#comments</comments>
		<pubDate>Fri, 15 Jan 2010 05:02:46 +0000</pubDate>
		<dc:creator>mbdmt chino</dc:creator>
				<category><![CDATA[HTML & JAVASCRIPT]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://blogger.mbdmt.com/?p=78</guid>
		<description><![CDATA[這個需求是有時候一個A區塊不固定高度，但是下面接著一個B區塊要緊跟著，不想留空

但如果A區塊超過某個高度，就必須用捲軸顯示，因為不想讓頁面拉的太長

且B區塊不再捲軸之內。

CSS一般狀態下自動捲軸是要指定高度的，固定住高度的話，底下如果接著另一區塊內容，可能會空白一大塊

不太美觀，這時可以藉由javascript來處理，我用的是jquery來處理，應該比較容易使用。
]]></description>
			<content:encoded><![CDATA[<p>這個需求是有時候一個A區塊不固定高度，但是下面接著一個B區塊要緊跟著，不想留空</p>
<p>但如果A區塊超過某個高度，就必須用捲軸顯示，因為不想讓頁面拉的太長</p>
<p>且B區塊不再捲軸之內。</p>
<p>CSS一般狀態下自動捲軸是要指定高度的，固定住高度的話，底下如果接著另一區塊內容，可能會空白一大塊</p>
<p>不太美觀，這時可以藉由javascript來處理，我用的是jquery來處理，應該比較容易使用。</p>
<p>請看以下的圖示</p>
<p><a href="http://blogger.mbdmt.com/wp-content/uploads/2010/01/f_2.gif"><img class="alignnone size-full wp-image-80" title="f_2" src="http://blogger.mbdmt.com/wp-content/uploads/2010/01/f_2.gif" alt="" width="451" height="795" /></a></p>
<p><a href="http://blogger.mbdmt.com/wp-content/uploads/2010/01/f_1.gif"><img class="alignnone size-full wp-image-81" title="f_1" src="http://blogger.mbdmt.com/wp-content/uploads/2010/01/f_1.gif" alt="" width="479" height="508" /></a></p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;autoheight_jquery&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
.goods {
	background-color: #FF9900;
	margin: 10px;
	float: left;
	height: 100px;
	width: 100px;
	position: relative;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
/*以下為必須的CSS設定*/
.out {
	height:100%;
	width: 440px;
	position: relative;
	overflow-x: hidden;
	overflow-y:auto;
	margin: 15px;
}
--&gt;
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;

&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!--
$(document).ready(function () {
	var obheight = 700;//超過容器高度自動捲軸
	var obname = '#out';//容器的ID
	var mc = $(obname).height();
	if(mc&gt;obheight) $(obname).height(obheight+'px');
});
//--&gt;
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;out&quot; class=&quot;out&quot;&gt;
&lt;div class=&quot;goods&quot;&gt; 內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; 內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; 內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; 內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; 內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; 內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; 內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; 內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; 內容放在這裡&lt;/div&gt;
&lt;div class=&quot;goods&quot;&gt; 內容放在這裡&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;img src=&quot;mbmail.gif&quot; /&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>下載範例檔-&gt;<a rel="attachment wp-att-79" href="http://blogger.mbdmt.com/?attachment_id=79">DownLoad autoheight_jquery Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogger.mbdmt.com/?feed=rss2&amp;p=78</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>很慘的高雄雪世界之旅</title>
		<link>http://blogger.mbdmt.com/?p=72</link>
		<comments>http://blogger.mbdmt.com/?p=72#comments</comments>
		<pubDate>Wed, 13 Jan 2010 03:21:25 +0000</pubDate>
		<dc:creator>mbdmt chino</dc:creator>
				<category><![CDATA[有的沒的碎碎念]]></category>

		<guid isPermaLink="false">http://blogger.mbdmt.com/?p=72</guid>
		<description><![CDATA[想說沒玩過雪，看到高雄雪世界有雪世界 趁禮拜六日去高雄玩玩

也蠻久沒去高雄了

禮拜六一早大約6點多出發，坐統聯去

大約12點多到高雄，到旅社休息一下，下午2點多到雪世界去玩，到那裡有點小失望
]]></description>
			<content:encoded><![CDATA[<p>想說沒玩過雪，看到高雄雪世界有雪世界 趁禮拜六日去高雄玩玩</p>
<p>也蠻久沒去高雄了</p>
<p>禮拜六一早大約6點多出發，坐統聯去</p>
<p>大約12點多到高雄，到旅社休息一下，下午2點多到雪世界去玩，到那裡有點小失望</p>
<p>我以為會有飄雪設施，結果沒有= =</p>
<p>就是頂著大太陽腳下有冰</p>
<p>算是體驗滑雪設施，整個沒有太驚喜</p>
<p>到了晚上7點多去六合夜市逛，還有遇到庹宗康他們在玩處罰遊戲，就一堆人圍在那裡</p>
<p>他被夾子夾，只看了一下子，因為剛去要找東西吃比較重要.</p>
<p>到了隔天早上，發現女兒開始發燒了 = =</p>
<p>原來是打算去夢時代廣場逛逛，不去有覺得可惜</p>
<p>後來就叫台計程車請師基先生幫我們找有開的診所</p>
<p>還好沒多久就有看到一家小兒科，進去才發現沒健保&#8230;..花7百多塊(好貴 ==)</p>
<p>醫生是說喉嚨有發炎，38.4度，有開抗生素和一些藥。</p>
<p>吃了藥以後還是去夢時代逛逛，去那租了兒童推車，說到這個</p>
<p>那裡的推車只有給2歲以下小朋友用的，我女兒四歲多了，第一處服務台說不能借，結果我們一定要用阿，跑到別的服務台</p>
<p>小孩在別地方等不給她們看到，跟服務小姐說2歲，才借到，呵~</p>
<p>坐上去還好腳長了 點，還是可以動，就坐在上面睡著了</p>
<p>我們也可以好好逛逛~</p>
<p>逛到下午2點多才回台北，回到台北就8點多了</p>
<p>一路上可能女兒不舒服一直要抱，行李也不少，所以整個就是累阿</p>
<p>隔天女兒一直喊喉嚨痛，我們以為是感冒多少會喉嚨痛有就不以為意</p>
<p>反正還有藥可以吃</p>
<p>但是晚上就一直喊痛，我才覺得不太對勁</p>
<p>晚上9點半多趕快帶去診所看，禮拜一人超多的，排到晚上11點半才看到，還好那家看的晚，我們是最後一號</p>
<p>好不容易等到，醫生一看喉嚨就說是腸病毒，也給我看，真的要嚇死我了，喉嚨裡都是長白色泡泡，就是常說的』<strong>疱疹性咽峽炎</strong>『。</p>
<p>還好有堅持看了醫生，不然去學校會傳給別的小朋友&#8230;.</p>
<p>不知道是旅社的水有問題，還是雪世界裡面髒，至少不會建議大家去雪世界，不好玩又怕會染到腸病毒</p>
<p>這次行程真的糟透了QQ</p>
]]></content:encoded>
			<wfw:commentRss>http://blogger.mbdmt.com/?feed=rss2&amp;p=72</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>夢17泡泡染</title>
		<link>http://blogger.mbdmt.com/?p=68</link>
		<comments>http://blogger.mbdmt.com/?p=68#comments</comments>
		<pubDate>Mon, 11 Jan 2010 07:04:09 +0000</pubDate>
		<dc:creator>mbdmt chino</dc:creator>
				<category><![CDATA[有的沒的碎碎念]]></category>
		<category><![CDATA[泡泡染]]></category>

		<guid isPermaLink="false">http://blogger.mbdmt.com/?p=68</guid>
		<description><![CDATA[前兩天去屈臣氏買了夢17泡泡染
因為之前看了廣告很想用看看
他有添加草本的東西
我去那家屈臣氏，除了黑以外剩下1盒亮澤橘
好像賣的不錯的樣子。
買回去開了兩包(一共三包)，想說短髮應該不用全部
頭髮弄濕以後稍微擦一下到不滴水
按照說明開始抓抓搓搓，但是泡泡始終搓不出來 = =
蠻像一般的染髮劑感覺，但是味道還可以接受，不會臭
另外就是還好頭皮不會有刺刺的感覺
之前用過幾個都會，有添加植物的果然比較溫和依點
等了20分鐘，就沖水嚕~
結果我染的有點失敗，因為耳朵上面那裏都沒染到，不知道是沒吃到顏色還是怎樣的
說明是說沒染過的劃過兩天再補染依次局部，所以到時候再看看
還好我有留一包
看捕染效果在看看以後是不是要續購~~

]]></description>
			<content:encoded><![CDATA[<p>前兩天去屈臣氏買了夢17泡泡染</p>
<p>因為之前看了廣告很想用看看</p>
<p>他有添加草本的東西</p>
<p>我去那家屈臣氏，除了黑以外剩下1盒亮澤橘</p>
<p>好像賣的不錯的樣子。</p>
<p>買回去開了兩包(一共三包)，想說短髮應該不用全部</p>
<p>頭髮弄濕以後稍微擦一下到不滴水</p>
<p>按照說明開始抓抓搓搓，但是泡泡始終搓不出來 = =</p>
<p>蠻像一般的染髮劑感覺，但是味道還可以接受，不會臭</p>
<p>另外就是還好頭皮不會有刺刺的感覺</p>
<p>之前用過幾個都會，有添加植物的果然比較溫和依點</p>
<p>等了20分鐘，就沖水嚕~</p>
<p>結果我染的有點失敗，因為耳朵上面那裏都沒染到，不知道是沒吃到顏色還是怎樣的</p>
<p>說明是說沒染過的劃過兩天再補染依次局部，所以到時候再看看</p>
<p>還好我有留一包</p>
<p>看捕染效果在看看以後是不是要續購~~</p>
<p><a href="http://blogger.mbdmt.com/wp-content/uploads/2010/01/M04875225_big.jpg"><img class="alignnone size-full wp-image-69" title="夢17泡泡染" src="http://blogger.mbdmt.com/wp-content/uploads/2010/01/M04875225_big.jpg" alt="" width="270" height="270" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogger.mbdmt.com/?feed=rss2&amp;p=68</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
