<?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>MEMOBALL.info &#187; HTML &amp; CSS</title>
	<atom:link href="http://www.memoball.info/category/programming/html_css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.memoball.info</link>
	<description>All of my Memories</description>
	<lastBuildDate>Thu, 22 Jul 2010 06:17:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Java-script ใน css</title>
		<link>http://www.memoball.info/02/java-script-%e0%b9%83%e0%b8%99-css/</link>
		<comments>http://www.memoball.info/02/java-script-%e0%b9%83%e0%b8%99-css/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 12:40:58 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[HTML & CSS]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=442</guid>
		<description><![CDATA[ท่านสามารถใส java-script ไว้สำหรับทำการแก้ bug ของ ie6 ซึ่งไม่สามารถแสดงผลได้อย่างถูกต้อง โดยการใส่ expression ดังตั่วอย่าง

#container{
	width: expression(document.body.clientWidth &#62; 1100)? "1100px" : "auto";
	/* For web browsers supporting it */
	max-width: 1100px;
}

]]></description>
			<content:encoded><![CDATA[<p>ท่านสามารถใส java-script ไว้สำหรับทำการแก้ bug ของ ie6 ซึ่งไม่สามารถแสดงผลได้อย่างถูกต้อง โดยการใส่ expression ดังตั่วอย่าง</p>
<pre>
#container{
	width: expression(document.body.clientWidth &gt; 1100)? "1100px" : "auto";
	/* For web browsers supporting it */
	max-width: 1100px;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/02/java-script-%e0%b9%83%e0%b8%99-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>วาดภาพบน HTML5</title>
		<link>http://www.memoball.info/02/%e0%b8%a7%e0%b8%b2%e0%b8%94%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%9a%e0%b8%99-html5/</link>
		<comments>http://www.memoball.info/02/%e0%b8%a7%e0%b8%b2%e0%b8%94%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%9a%e0%b8%99-html5/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 00:09:25 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[HTML & CSS]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=436</guid>
		<description><![CDATA[ถ้าคุณอยากมีโปรแกรมวาดภาพซักตัวบนเวป โดยที่คุณไม่ต้องใช้ flash คุณสามารถลองใช้ http://mugtug.com/sketchpad/ ตัวนี้ได้เลยครับ
]]></description>
			<content:encoded><![CDATA[<p>ถ้าคุณอยากมีโปรแกรมวาดภาพซักตัวบนเวป โดยที่คุณไม่ต้องใช้ flash คุณสามารถลองใช้<a href="http://mugtug.com/sketchpad/"> http://mugtug.com/sketchpad/</a> ตัวนี้ได้เลยครับ</p>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/02/%e0%b8%a7%e0%b8%b2%e0%b8%94%e0%b8%a0%e0%b8%b2%e0%b8%9e%e0%b8%9a%e0%b8%99-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>รูปในเวปผมหายไปไหน</title>
		<link>http://www.memoball.info/02/%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b9%83%e0%b8%99%e0%b9%80%e0%b8%a7%e0%b8%9b%e0%b8%9c%e0%b8%a1%e0%b8%ab%e0%b8%b2%e0%b8%a2%e0%b9%84%e0%b8%9b%e0%b9%84%e0%b8%ab%e0%b8%99/</link>
		<comments>http://www.memoball.info/02/%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b9%83%e0%b8%99%e0%b9%80%e0%b8%a7%e0%b8%9b%e0%b8%9c%e0%b8%a1%e0%b8%ab%e0%b8%b2%e0%b8%a2%e0%b9%84%e0%b8%9b%e0%b9%84%e0%b8%ab%e0%b8%99/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 00:33:59 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[HTML & CSS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=432</guid>
		<description><![CDATA[เมื่อหลายวันก่อนผมทำการแก้ไขเวปเซอร์วิช ซึ่งเป็น web-apllication ตัวหนึ่งที่ผมดูและอยู่ ปรากฏว่ารูปที่เป็นส่วนประกอบของผมหายไปอย่างลึกลับเมื่อผู้ใช้งานทั่วไปเข้าไปใช้ ซึ่งในเบื้องต้น ผมใช้ ubuntu+firefox ไม่เกิดข้อผิดพลาดใดๆ ในกรณีดังกล่าว จะเป็นเฉพาะ HTTP over SSL (HTTPS) 
สาเหตุ
สาเหตุก็เป็นเพราะว่า รูปผมมันเป็น http แต่เวปมันเป็น https บราวเซอร์จะไม่ยอมโหลดรูปให้ ปัญหาดังกล่าวจะเป็นเกือบทุกบราวเซอร์ โดยบางเครื่องอาจมีการถามก่อนว่าจะโหลดหรือไม่ ตามแต่ผู้ใช้งานจะเป็นผู้ตั้งไว้ แต่จุดที่สังเกตได้ง่ายๆ คือด้านมุมขวาล่าง จะมีรูปแม่กุญแจอยู่ ถ้าเป็นกรณีนี่มีการโหลด http บนเวป https จะมีรูปเครื่องหมายตกใจสีแดงปรากฎอยู่บนรูปแม่กุญแจนั้น
วิธีแก้ไข
วิธีแก้ไขที่ดีที่สุดน่าจะอยู่ที่ตัวผู้เขียนเวปเอง โดยทำการกำหนด link ต่างๆ ในหน้าเวปของเราให้เป็น https ซะ
]]></description>
			<content:encoded><![CDATA[<p>เมื่อหลายวันก่อนผมทำการแก้ไขเวปเซอร์วิช ซึ่งเป็น web-apllication ตัวหนึ่งที่ผมดูและอยู่ ปรากฏว่ารูปที่เป็นส่วนประกอบของผมหายไปอย่างลึกลับเมื่อผู้ใช้งานทั่วไปเข้าไปใช้ ซึ่งในเบื้องต้น ผมใช้ ubuntu+firefox ไม่เกิดข้อผิดพลาดใดๆ ในกรณีดังกล่าว จะเป็นเฉพาะ HTTP over SSL (HTTPS) <span id="more-432"></span></p>
<h2>สาเหตุ</h2>
<p>สาเหตุก็เป็นเพราะว่า รูปผมมันเป็น http แต่เวปมันเป็น https บราวเซอร์จะไม่ยอมโหลดรูปให้ ปัญหาดังกล่าวจะเป็นเกือบทุกบราวเซอร์ โดยบางเครื่องอาจมีการถามก่อนว่าจะโหลดหรือไม่ ตามแต่ผู้ใช้งานจะเป็นผู้ตั้งไว้ แต่จุดที่สังเกตได้ง่ายๆ คือด้านมุมขวาล่าง จะมีรูปแม่กุญแจอยู่ ถ้าเป็นกรณีนี่มีการโหลด http บนเวป https จะมีรูปเครื่องหมายตกใจสีแดงปรากฎอยู่บนรูปแม่กุญแจนั้น</p>
<h2>วิธีแก้ไข</h2>
<p>วิธีแก้ไขที่ดีที่สุดน่าจะอยู่ที่ตัวผู้เขียนเวปเอง โดยทำการกำหนด link ต่างๆ ในหน้าเวปของเราให้เป็น https ซะ</p>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/02/%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b9%83%e0%b8%99%e0%b9%80%e0%b8%a7%e0%b8%9b%e0%b8%9c%e0%b8%a1%e0%b8%ab%e0%b8%b2%e0%b8%a2%e0%b9%84%e0%b8%9b%e0%b9%84%e0%b8%ab%e0%b8%99/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Download file over SSL Error with Internet Explorer</title>
		<link>http://www.memoball.info/02/download-file-over-ssl-error-with-internet-explorer/</link>
		<comments>http://www.memoball.info/02/download-file-over-ssl-error-with-internet-explorer/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 00:20:14 +0000</pubDate>
		<dc:creator>spnball</dc:creator>
				<category><![CDATA[HTML & CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Application]]></category>
		<category><![CDATA[web bug]]></category>

		<guid isPermaLink="false">http://www.memoball.info/?p=427</guid>
		<description><![CDATA[เมื่ออาทิตย์ก่อน ผมเจอปัญหาที่ทำอยู่ที่ทำงานครับ ซึ่งงานผมเป็น service ที่ทำงานอยู่บน SSL หรือพูดให้ฟังดูง่ายๆ คือ https นั้นเอง ปัญหาที่ผมกับผู้ใช้งานเซอร์วิชก็คือ ไม่สามารถดาวโหลดแฟ้มข้อมูลได้
ปัญหา
ไม่สามารถโหลดไฟล์ผ่าน SSL  โดยปัญหานี้พบกับเฉพาะ Internet Explorer 7 (IE7 โดย IE รุ่นอื่น ยังไม่ได้รับรายงานปัญหาดังกล่าว) ส่วนบราวเซอร์ตัวอื่นยังไม่พบปัญหาเช่นนี้ โดย error ที่พบ IE จะขึ้นมาที่ผู้ใช้ว่า &#8220;the file could not be written to the cache&#8221; ทำให้ไม่สามารถดาวโหลดไฟล์ได้
วิธีการแก้ไข
สามารถเลือกแก้ไขได้โดยวิธีใดวิธีหนึ่งดังนี้
สำหรับ server admin หรือ webmaster
ห้ามใส่ cache-control หรือ pragma: no-cache ลงใน header ของ http ในส่วนที่เป็น oct-stream หรือ file-download
สำหรับ client [...]]]></description>
			<content:encoded><![CDATA[<p>เมื่ออาทิตย์ก่อน ผมเจอปัญหาที่ทำอยู่ที่ทำงานครับ ซึ่งงานผมเป็น service ที่ทำงานอยู่บน SSL หรือพูดให้ฟังดูง่ายๆ คือ https นั้นเอง ปัญหาที่ผมกับผู้ใช้งานเซอร์วิชก็คือ ไม่สามารถดาวโหลดแฟ้มข้อมูลได้<span id="more-427"></span></p>
<h2>ปัญหา</h2>
<p>ไม่สามารถโหลดไฟล์ผ่าน SSL  โดยปัญหานี้พบกับเฉพาะ Internet Explorer 7 (IE7 โดย IE รุ่นอื่น ยังไม่ได้รับรายงานปัญหาดังกล่าว) ส่วนบราวเซอร์ตัวอื่นยังไม่พบปัญหาเช่นนี้ โดย error ที่พบ IE จะขึ้นมาที่ผู้ใช้ว่า <strong>&#8220;the file could not be written to the cache&#8221; </strong>ทำให้ไม่สามารถดาวโหลดไฟล์ได้</p>
<h2>วิธีการแก้ไข</h2>
<p>สามารถเลือกแก้ไขได้โดยวิธีใดวิธีหนึ่งดังนี้</p>
<h3>สำหรับ server admin หรือ webmaster</h3>
<p>ห้ามใส่ cache-control หรือ pragma: no-cache ลงใน header ของ http ในส่วนที่เป็น oct-stream หรือ file-download</p>
<h3>สำหรับ client (ผมยังไม่ได้ลองครับ)</h3>
<p>เข้าไป uncheck ตามลำดับดังนี้ IE Tools -&gt; Internet Options -&gt; Advanced -&gt; Security -&gt;<strong> Do not save encrypted<br />
pages to disk </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/02/download-file-over-ssl-error-with-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การใช้ div สร้าง round-corner แบบ dynmic</title>
		<link>http://www.memoball.info/04/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%8a%e0%b9%89-div-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-round-corner-%e0%b9%81%e0%b8%9a%e0%b8%9a-dynmic/</link>
		<comments>http://www.memoball.info/04/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%8a%e0%b9%89-div-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-round-corner-%e0%b9%81%e0%b8%9a%e0%b8%9a-dynmic/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 15:01:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML & CSS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Round corner]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=194</guid>
		<description><![CDATA[ุวันนี้เราจะพูดกันถึงเรื่องการสร้าง round-corner ซึ่งก้คือการทำให้มุมของกล่องของเราแสดงเป็นรูปแบบโค้ง ซึ่งนิยมใช้กันกันการออกแบบเวปปัจจุับัน ซึ่งในที่นี้จะกล่าวถึงวิธีทำแบบใช้ div  ซึ่งจากที่ผมได้ลองค้นหาดูแล้วก็พบว่า ส่วนใหญ่ที่ทำการสอนกันนั้นจะ static คือแบบที่ไม่สามารถยึดหดกล่องได้แบบอิสระ เพราะการกำหนดรูปของกล่องอย่างตายตัว หรือใช้ css ของ mozilla ซึ่งจะใช้ได้เพียงบางบราวเซอร์เท่านั้น โดยสุดท้ายได้ทำการออกแบบเป็นโค้ดดังต่อไปนี้

จาก WikiBall


			
หลังจากค้นหาข้อมูลอยู่หลายครั้งในการทำ round-corner ให้กับเวปไซต์ ส่วนมาก round corner ที่ใช้กันจะเป็นแบบ static คือกำหนดความยาวรูป และกล่องมาเลย ทำให้ไม่ยืดหยุ่นในการใช้งาน แต่ถ้าเป็นแบบ dynamic ที่สามารถยืดหดกล่องได้และทำโดยใช้ div และ css จะทำได้ยากมากเพราะติดปัญหาเรื่อง cross browser โดยเฉพาะการแสดงผลใน MSIE จะมีปัญหามาก เนื่องจากไม่ค่อยแสดงผลตามแบบ w3c สักเท่าไหร่ และโดยเฉพาะเจ้า MSIE6 มีปัญหา bug ที่เกี่ยวกับ css มากอยู่พอสมควร เช่น ปัญหา [3px-jog] ซึ่งทำให้การออกแบบบางลักษณะไม่ได้





เนื้อหา


1 [...]]]></description>
			<content:encoded><![CDATA[<p>ุวันนี้เราจะพูดกันถึงเรื่องการสร้าง round-corner ซึ่งก้คือการทำให้มุมของกล่องของเราแสดงเป็นรูปแบบโค้ง ซึ่งนิยมใช้กันกันการออกแบบเวปปัจจุับัน ซึ่งในที่นี้จะกล่าวถึงวิธีทำแบบใช้ div  ซึ่งจากที่ผมได้ลองค้นหาดูแล้วก็พบว่า ส่วนใหญ่ที่ทำการสอนกันนั้นจะ static คือแบบที่ไม่สามารถยึดหดกล่องได้แบบอิสระ เพราะการกำหนดรูปของกล่องอย่างตายตัว หรือใช้ css ของ mozilla ซึ่งจะใช้ได้เพียงบางบราวเซอร์เท่านั้น โดยสุดท้ายได้ทำการออกแบบเป็นโค้ดดังต่อไปนี้<span id="more-194"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%83%E0%B8%8A%E0%B9%89_div_%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87_round-corner">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --></p>
<p>หลังจากค้นหาข้อมูลอยู่หลายครั้งในการทำ round-corner ให้กับเวปไซต์ ส่วนมาก round corner ที่ใช้กันจะเป็นแบบ static คือกำหนดความยาวรูป และกล่องมาเลย ทำให้ไม่ยืดหยุ่นในการใช้งาน แต่ถ้าเป็นแบบ dynamic ที่สามารถยืดหดกล่องได้และทำโดยใช้ div และ css จะทำได้ยากมากเพราะติดปัญหาเรื่อง cross browser โดยเฉพาะการแสดงผลใน MSIE จะมีปัญหามาก เนื่องจากไม่ค่อยแสดงผลตามแบบ w3c สักเท่าไหร่ และโดยเฉพาะเจ้า MSIE6 มีปัญหา bug ที่เกี่ยวกับ css มากอยู่พอสมควร เช่น ปัญหา [<a href="http://www.positioniseverything.net/explorer/threepxtest.html" class="external text" title="http://www.positioniseverything.net/explorer/threepxtest.html" rel="nofollow">3px-jog</a>] ซึ่งทำให้การออกแบบบางลักษณะไม่ได้
</p>
<table id="toc" class="toc" summary="เนื้อหา">
<tr>
<td>
<div id="toctitle">
<h2>เนื้อหา</h2>
</div>
<ul>
<li class="toclevel-1"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_css_.E0.B8.82.E0.B8.AD.E0.B8.87_Mozzilla" ref="toc"><span class="tocnumber">1</span> <span class="toctext">การใช้ css ของ Mozzilla</span></a></li>
<li class="toclevel-1"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_DIV.2BCSS" ref="toc"><span class="tocnumber">2</span> <span class="toctext">การใช้ DIV+CSS</span></a>
<ul>
<li class="toclevel-2"><a href="./#HTML" ref="toc"><span class="tocnumber">2.1</span> <span class="toctext">HTML</span></a></li>
<li class="toclevel-2"><a href="./#CSS" ref="toc"><span class="tocnumber">2.2</span> <span class="toctext">CSS</span></a></li>
</ul>
</li>
<li class="toclevel-1"><a href="./#.E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_css_.E0.B8.82.E0.B8.AD.E0.B8.87_Mozzilla_2" ref="toc"><span class="tocnumber">3</span> <span class="toctext">การใช้ css ของ Mozzilla</span></a></li>
</ul>
</td>
</tr>
</table>
<p><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "แสดง"; var tocHideText = "ซ่อน"; showTocToggle(); } </script><br />
<a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_css_.E0.B8.82.E0.B8.AD.E0.B8.87_Mozzilla" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การใช้ css ของ Mozzilla </span></h2>
<ul>
<li> <b>-moz-border-radius-bottomleft</b> sets the rounding for the bottom-left curve.
</li>
<li> <b>-moz-border-radius-bottomright</b> sets the rounding for the bottom-right curve.
</li>
<li> <b>-moz-border-radius-topleft</b> sets the rounding for the top-left curve.
</li>
<li> <b>-moz-border-radius-topright</b> sets the rounding for the top-right curve.
</li>
</ul>
<p><i>ข้อดีคือ</i>
</p>
<ul>
<li> ทำง่าย
</li>
<li> ใช้ bandwidth และ connection น้อย
</li>
</ul>
<p><i>ข้อเสีย</i>
</p>
<ul>
<li> ใช้ได้ไม่ครบทุก browser แน่นอนว่า MSIE ใช้ไม่ได้แน่นอน
</li>
</ul>
<p><a href="https://developer.mozilla.org/en/CSS/-moz-border-radius" class="external free" title="https://developer.mozilla.org/en/CSS/-moz-border-radius" rel="nofollow">https://developer.mozilla.org/en/CSS/-moz-border-radius</a>
</p>
<p><a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_DIV.2BCSS" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การใช้ DIV+CSS </span></h2>
<p><a name="HTML" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> HTML </span></h3>
<pre name="code" class="html">
&lt;div id=&quot;box&quot;&gt;
  &lt;div class=&quot;border-top&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-topleft&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-topright&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-left&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-right&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-bottom&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-bottomleft&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;border-bottomright&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;content&quot;&gt;
    /* Type your content */
  &lt;/div&gt;
&lt;/div&gt;
</pre>
<p><a name="CSS" href="http://wiki.memoball.info/"></a><br />
<h3> <span class="mw-headline"> CSS </span></h3>
<pre>
@charset &quot;utf-8&quot;;
/* CSS Document */

#box {
	position: relative;
	/* Replace the border image size here */
	margin: 12px 12px 12px 12px;
	/*
	 * Don't use padding here because IE6 is render incorrectly
	 * Padding shoud be in &quot;.content&quot;
	 */
}

#box .content {
	padding: 4px;
}

.border-top,
.border-bottom,
.border-topleft,
.border-left,
.border-bottomleft,
.border-topright,
.border-right,
.border-bottomright {
	position: absolute;
}

.border-top,
.border-bottom {
	left: 0px;
}

.border-topleft,
.border-left,
.border-bottomleft {
	left: -12px;
	width: 12px;
}

.border-topright,
.border-right,
.border-bottomright {
	right: -12px;
	width:  12px;
}
.border-top,
.border-topleft,
.border-topright {
	top:   -12px;
	height: 12px;
}

.border-bottom,
.border-bottomleft,
.border-bottomright {
	bottom: -12px;
	height:  12px;
}

.border-top, .border-bottom {
	width: 100%;
}
.border-left, .border-right {
	top: 0px;
	bottom: 0px;
	height: 100%;
	/* IE6 fix the 100% bug */
	_height: expression(eval(this.parentNode.clientHeight) + &quot;px&quot;);
}

/* replace the border images link here */
.border-top         { background: URL(../images/greenHorizontal.gif) repeat-x top; }
.border-topleft     { background: URL(../images/greenCorner.gif) no-repeat left top; }
.border-topright    { background: URL(../images/greenCorner.gif) no-repeat right top; }
.border-left        { background: URL(../images/greenVertical.gif) repeat-y left; }
.border-right       { background: URL(../images/greenVertical.gif) repeat-y right; }
.border-bottom      { background: URL(../images/greenHorizontal.gif) repeat-x bottom; }
.border-bottomleft  { background: URL(../images/greenCorner.gif) no-repeat left bottom; }
.border-bottomright { background: URL(../images/greenCorner.gif) no-repeat right bottom; }
</pre>
<p><a name=".E0.B8.81.E0.B8.B2.E0.B8.A3.E0.B9.83.E0.B8.8A.E0.B9.89_css_.E0.B8.82.E0.B8.AD.E0.B8.87_Mozzilla_2" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline"> การใช้ css ของ Mozzilla </span></h2>
<ul>
<li> <b>-moz-border-radius-bottomleft</b> sets the rounding for the bottom-left curve.
</li>
<li> <b>-moz-border-radius-bottomright</b> sets the rounding for the bottom-right curve.
</li>
<li> <b>-moz-border-radius-topleft</b> sets the rounding for the top-left curve.
</li>
<li> <b>-moz-border-radius-topright</b> sets the rounding for the top-right curve.
</li>
</ul>
<p><i>ข้อดีคือ</i>
</p>
<ul>
<li> ใช้ได้ทุก browser
</li>
</ul>
<p><i>ข้อเสีย</i>
</p>
<ul>
<li> เขียน css ยุ่งยาก
</li>
<li> ต้องเปิด connection เพื่อโหลดรูปเพิ่มอีก 3 รูป
</li>
</ul>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 12/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:25-0!1!0!!th!2!edit=0 and timestamp 20090825115814 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%83%E0%B8%8A%E0%B9%89_div_%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87_round-corner">http://wiki.memoball.info/index.php/การใช้_div_สร้าง_round-corner</a></div>
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks"><a href="http://wiki.memoball.info//index.php/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:Categories" title="พิเศษ:Categories">หมวดหมู่</a>:&#32;<span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:CSS&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:CSS (ยังไม่ได้สร้าง)">CSS</a></span> | <span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:HTML&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:HTML (ยังไม่ได้สร้าง)">HTML</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/04/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%8a%e0%b9%89-div-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-round-corner-%e0%b9%81%e0%b8%9a%e0%b8%9a-dynmic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Order list (ol) error ใน IE</title>
		<link>http://www.memoball.info/03/order-list-ol-error-%e0%b9%83%e0%b8%99-ie/</link>
		<comments>http://www.memoball.info/03/order-list-ol-error-%e0%b9%83%e0%b8%99-ie/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 04:53:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML & CSS]]></category>
		<category><![CDATA[IE error]]></category>

		<guid isPermaLink="false">http://memoball.nabzer.com/?p=190</guid>
		<description><![CDATA[หลังจากนั่งงง อยู่เกือบครึ่งวัน เพราะการแสดงผลผิดพลาดของ MSIE ทั้ง 6 และ 7 ซึ่ง ol จะแลดงเลข counter เป็น 1 ทั้งหมด โดยที่ทั้ง Firefox,Safari,Chrome แสดงผลตามปกติ

จาก WikiBall


			
			
 HTML code
&#60;div id=&#34;GovTop10&#34;&#62;&#60;h1&#62;เวปราชการยอดนิยม&#60;/h1&#62;
&#60;ol&#62;
&#60;li&#62;&#60;a title=&#34;สรรพากร (www.rd.go.th)&#34; href=&#34;http://www.rd.go.th&#34;&#62;สรรพากร&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;สำนักงานคณะกรรมการการศึกษาขั้นพื้นฐาน (www.obec.go.th)&#34; href=&#34;http://www.obec.go.th&#34;&#62;สำนักงานคณะกรรมการการศึกษาขั้นพื้นฐาน&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;สำนักงานประกันสังคม (www.sso.go.th)&#34; href=&#34;http://www.sso.go.th&#34;&#62;สำนักงานประกันสังคม&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;สำนักงานสลากกินแบ่งรัฐบาล (www.glo.or.th)&#34; href=&#34;http://www.glo.or.th&#34;&#62;สำนักงานสลากกินแบ่งรัฐบาล&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;กรมส่งเสริมการปกครองท้องถิ่น (Department of Local Administration) (www.thailocaladmin.go.th)&#34; href=&#34;http://www.thailocaladmin.go.th&#34;&#62;กรมส่งเสริมการปกครองท้องถิ่น (Department of Local Administration)&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;กรมประชาสัมพันธ์ (www.prd.go.th)&#34; href=&#34;http://www.prd.go.th&#34;&#62;กรมประชาสัมพันธ์&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;www.ocsc.go.th (www.ocsc.go.th)&#34; href=&#34;http://www.ocsc.go.th&#34;&#62;www.ocsc.go.th&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;ธนาคารแห่งประเทศไทย (www.bot.or.th)&#34; href=&#34;http://www.bot.or.th&#34;&#62;ธนาคารแห่งประเทศไทย&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a title=&#34;Information [...]]]></description>
			<content:encoded><![CDATA[<p>หลังจากนั่งงง อยู่เกือบครึ่งวัน เพราะการแสดงผลผิดพลาดของ MSIE ทั้ง 6 และ 7 ซึ่ง ol จะแลดงเลข counter เป็น 1 ทั้งหมด โดยที่ทั้ง Firefox,Safari,Chrome แสดงผลตามปกติ<span id="more-190"></span></p>
<div id="bodyContent">
<h3 id="siteSub"><a href="http://wiki.memoball.info/index.php/Order_list_%28ol%29_error_%E0%B9%83%E0%B8%99_IE">จาก WikiBall</a></h3>
<div id="contentSub"></div>
<div id="jump-to-nav"></div>
<p>			<!-- start content --><br />
			<a name="HTML_code" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">HTML code</span></h2>
<pre name="code" class="html">&lt;div id=&quot;GovTop10&quot;&gt;&lt;h1&gt;เวปราชการยอดนิยม&lt;/h1&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a title=&quot;สรรพากร (www.rd.go.th)&quot; href=&quot;http://www.rd.go.th&quot;&gt;สรรพากร&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;สำนักงานคณะกรรมการการศึกษาขั้นพื้นฐาน (www.obec.go.th)&quot; href=&quot;http://www.obec.go.th&quot;&gt;สำนักงานคณะกรรมการการศึกษาขั้นพื้นฐาน&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;สำนักงานประกันสังคม (www.sso.go.th)&quot; href=&quot;http://www.sso.go.th&quot;&gt;สำนักงานประกันสังคม&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;สำนักงานสลากกินแบ่งรัฐบาล (www.glo.or.th)&quot; href=&quot;http://www.glo.or.th&quot;&gt;สำนักงานสลากกินแบ่งรัฐบาล&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;กรมส่งเสริมการปกครองท้องถิ่น (Department of Local Administration) (www.thailocaladmin.go.th)&quot; href=&quot;http://www.thailocaladmin.go.th&quot;&gt;กรมส่งเสริมการปกครองท้องถิ่น (Department of Local Administration)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;กรมประชาสัมพันธ์ (www.prd.go.th)&quot; href=&quot;http://www.prd.go.th&quot;&gt;กรมประชาสัมพันธ์&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;www.ocsc.go.th (www.ocsc.go.th)&quot; href=&quot;http://www.ocsc.go.th&quot;&gt;www.ocsc.go.th&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;ธนาคารแห่งประเทศไทย (www.bot.or.th)&quot; href=&quot;http://www.bot.or.th&quot;&gt;ธนาคารแห่งประเทศไทย&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;Information of Thai tambon or villages with local products and many interesting places (www.thaitambon.com)&quot; href=&quot;http://www.thaitambon.com&quot;&gt;Information of Thai tambon or villages with local products and many interesting places&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a title=&quot;CM108.com เชียงใหม่ หางานเชียงใหม่ ภาพเชียงใหม่ เชียงใหม่108 จังหวัดเชียงใหม่ (www.cm108.com)&quot; href=&quot;http://www.cm108.com&quot;&gt;CM108.com เชียงใหม่ หางานเชียงใหม่ ภาพเชียงใหม่ เชียงใหม่108 จังหวัดเชียงใหม่&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</pre>
<p><a href="http://wiki.memoball.info//index.php/%E0%B8%A0%E0%B8%B2%E0%B8%9E:OlError.gif" class="image" title="ตัวอย่าง ol error"><img alt="ตัวอย่าง ol error" src="http://wiki.memoball.info//images/7/70/OlError.gif" width="214" height="278" border="0" /></a>
</p>
<p><a name="CSS_code" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">CSS code</span></h2>
<pre name="code" class="css">
#GovTop10 {
	text-align: left;
	width: 200px;
}
#GovTop10 li{
	width: 180px;
}
#GovTop10 h1{
	font-size: 15px;
	color: #29ABE2;
	text-align: center;
	margin-bottom: 0px;
}

#GovTop10 .site{
	width: 180px;
	list-style: none;
}

GovTop10 .zebra_odd{
	background-color:#FFFFFF;
}
#GovTop10 .zebra_even{
	background-color: #EFEFEF;
}</pre>
<p><a name=".E0.B8.A7.E0.B8.B4.E0.B8.98.E0.B8.B5.E0.B9.81.E0.B8.81.E0.B9.89.E0.B9.84.E0.B8.82" href="http://wiki.memoball.info/"></a><br />
<h2> <span class="mw-headline">วิธีแก้ไข</span></h2>
<p>หลังจากหาอยู่เป็นเวลานานจึงได้พบว่า สิ่งที่ทำให้เกความผิดพลาดคือ
</p>
<pre name="code" class="css">
#GovTop10 li{
	width: 180px;
}
</pre>
<p>โดยถ้าลบ width ทิ้ง ก็จะแสดงผลได้ถูกต้องตามเดิม
</p>
<p><!--<br />
NewPP limit report<br />
Preprocessor node count: 13/1000000<br />
Post-expand include size: 0/2097152 bytes<br />
Template argument size: 0/2097152 bytes<br />
Expensive parser function count: 0/100<br />
--></p>
<p><!-- Saved in parser cache with key memoball_wiki:pcache:idhash:38-0!1!0!!th!2!edit=0 and timestamp 20090825115815 --></p>
<div class="printfooter">
<h5>รับข้อมูลจาก (Reference) : </h5>
<p>จาก WikiBall : <a href="http://wiki.memoball.info/index.php/Order_list_%28ol%29_error_%E0%B9%83%E0%B8%99_IE">http://wiki.memoball.info/index.php/Order_list_(ol)_error_ใน_IE</a></div>
<div id='catlinks' class='catlinks'>
<div id="mw-normal-catlinks"><a href="http://wiki.memoball.info//index.php/%E0%B8%9E%E0%B8%B4%E0%B9%80%E0%B8%A8%E0%B8%A9:Categories" title="พิเศษ:Categories">หมวดหมู่</a>:&#32;<span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:HTML&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:HTML (ยังไม่ได้สร้าง)">HTML</a></span> | <span dir='ltr'><a href="http://wiki.memoball.info//index.php?title=%E0%B8%AB%E0%B8%A1%E0%B8%A7%E0%B8%94%E0%B8%AB%E0%B8%A1%E0%B8%B9%E0%B9%88:CSS&amp;action=edit&amp;redlink=1" class="new" title="หมวดหมู่:CSS (ยังไม่ได้สร้าง)">CSS</a></span></div>
</div>
<p>			<!-- end content --></p>
<div class="visualClear"></div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.memoball.info/03/order-list-ol-error-%e0%b9%83%e0%b8%99-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
