<?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>Kỹ Năng Web</title>
	<atom:link href="http://kynangweb.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kynangweb.com</link>
	<description>Chào mừng bạn đến với website Kỹ Năng Web</description>
	<lastBuildDate>Mon, 07 Jun 2010 01:48:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Phương thuốc đặc trị về PNG trên IE6</title>
		<link>http://kynangweb.com/2010/06/06/ph%c6%b0%c6%a1ng-thu%e1%bb%91c-d%e1%ba%b7c-tr%e1%bb%8b-v%e1%bb%81-png-tren-ie6/</link>
		<comments>http://kynangweb.com/2010/06/06/ph%c6%b0%c6%a1ng-thu%e1%bb%91c-d%e1%ba%b7c-tr%e1%bb%8b-v%e1%bb%81-png-tren-ie6/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 12:32:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://kynangweb.com/?p=19</guid>
		<description><![CDATA[Như các bạn đã biết cái một trong cái đáng ghét của IE6 là nó không hiện thị hình png được chính xác cùng với những vấn đề khác như canh center, background-position cũng bị lỗi đã làm cho những người làm web như chúng ta đau đầu và mong muốn IE6 chết càng sớm [...]]]></description>
			<content:encoded><![CDATA[<p>Như các bạn đã biết cái một trong cái đáng ghét của IE6 là nó không hiện thị hình png được chính xác cùng với những vấn đề khác như canh center, background-position cũng bị lỗi đã làm cho những người làm web như chúng ta đau đầu và mong muốn IE6 chết càng sớm càng tốt như buồn thay nó vẫn sống dai và chiếm một tỉ lệ cũng tương đối nhiều.</p>
<p>Vấn đề chúng ta buộc phải tìm cách khắc phục nó thôi. Hôm nay mình xin giới thiệu một cách có thể xử đẹp những lỗi trên. Đó chính là <strong>DD_belatedPNG</strong></p>
<p>Cách sử dụng:</p>
<ul>
<li>Download 1 trong 2 file sau: <a href="http://www.adrive.com/public/f3776f15abf20dc459fd36e1c6833a3d3b424cd4fb9c76b2a9c4d271308e9f41.html" target="_blank">DD_belatedPNG_0.0.8a</a> hoặc <a href="http://www.adrive.com/public/9afdb350707f1b38ddc7b38e127c4ba957b0dba8a090b00477c7dbd4d39e62b8.html" target="_blank">DD_belatedPNG_0.0.8a-min</a></li>
<li>Sau đó trong file HTML ta khai báo trong tag &lt;head&gt;&#8230;&lt;/head&gt; đoạn code sau:<br />
&lt;!&#8211;[if IE 6]&gt;<br />
&lt;script src=&#8221;DD_belatedPNG.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script&gt;<br />
DD_belatedPNG.fix(&#8216;.png_bg, #container, img&#8217;);<br />
&lt;/script&gt;<br />
&lt;![endif]&#8211;&gt;</p>
<p>Đoạn code trên sẽ giúp ta tìm đến class tên là .png_bg , id có tên là container (dĩ nhiên là các class và id này phải có background-image là hình PNG), và các hình ảnh trên web thông qua tag &lt;img&gt; sẽ fix hết các hình ảnh PNG và các hình ảnh này sẽ hiện thị đúng như chúng ta mong muốn.</li>
</ul>
<p>Đơn giản quá phải không các bạn. Hi vọng sẽ giúp được các bạn trong việc trị IE &#8220;cổ&#8221; này</p>
]]></content:encoded>
			<wfw:commentRss>http://kynangweb.com/2010/06/06/ph%c6%b0%c6%a1ng-thu%e1%bb%91c-d%e1%ba%b7c-tr%e1%bb%8b-v%e1%bb%81-png-tren-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>14 kho ảnh miễn phí không thể thiếu cho Designer !</title>
		<link>http://kynangweb.com/2010/02/28/14-kho-%e1%ba%a3nh-mi%e1%bb%85n-phi-khong-th%e1%bb%83-thi%e1%ba%bfu-cho-designer/</link>
		<comments>http://kynangweb.com/2010/02/28/14-kho-%e1%ba%a3nh-mi%e1%bb%85n-phi-khong-th%e1%bb%83-thi%e1%ba%bfu-cho-designer/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 11:54:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Khác]]></category>

		<guid isPermaLink="false">http://kynangweb.com/?p=12</guid>
		<description><![CDATA[Đối với việc thiết kế web thì hình ảnh đẹp là không thể thiếu, vì thế tôi xin list ra đây một số trang web cung cấp hình ảnh để chúng ta có thể dễ dàng tìm kiếm hình ảnh phục vụ cho công việc của mình.]]></description>
			<content:encoded><![CDATA[<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;">Đối với việc thiết kế web thì hình ảnh đẹp là không thể thiếu, vì thế tôi xin list ra đây một số trang web cung cấp hình ảnh để chúng ta có thể dễ dàng tìm kiếm hình ảnh phục vụ cho công việc của mình.</p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">1.</strong> <strong style="margin: 0px; padding: 0px;"><a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.photocase.de');" href="http://www.photocase.de/en/" target="_blank">Photocase:</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/photocase.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">2. <a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.sxc.hu');" href="http://www.sxc.hu/" target="_blank">StockXchange:</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/StockXchange.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">3. <a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.stockvault.net');" href="http://www.stockvault.net/" target="_blank">StockVault:</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/StockVault.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">4. <a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.dreamstime.com');" href="http://www.dreamstime.com/free-photos" target="_blank">Dreamstime</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/Dreamstime.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">5. <a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.openphoto.net');" href="http://www.openphoto.net/" target="_blank">Open Photo</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/OpenPhoto.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">6. <a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.morguefile.com');" href="http://www.morguefile.com/" target="_blank">morgueFile</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/morgueFile.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">7. <a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.everystockphoto.com');" href="http://www.everystockphoto.com/" target="_blank">Every Stock Photo</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/EveryStockPhoto-1.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">8. <a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.studio25.ro');" href="http://www.studio25.ro/" target="_blank">Studio 25</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/Studio25.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">9. <a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.woophy.com');" href="http://www.woophy.com/" target="_blank">Woophy</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/Woophy.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">10. <a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.dexhaus.com');" href="http://www.dexhaus.com/v2/home.html?1657" target="_blank">DexHaus</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/DexHaus.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">11. <a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.photogen.com');" href="http://www.photogen.com/" target="_blank">Photogen</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/Photogen.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">12. <a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.aboutpixel.de');" href="http://www.aboutpixel.de/" target="_blank">About Pixels</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/AboutPixels.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">13. <a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.freefoto.com');" href="http://www.freefoto.com/index.jsp" target="_blank">FreeFoto</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/FreeFoto.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><strong style="margin: 0px; padding: 0px;">14. <a style="margin: 0px; padding: 0px; text-decoration: none; color: #29568f;" title="30 Sites to download Free Stock and raoyalty free images" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.freephotosbank.com');" href="http://www.freephotosbank.com/" target="_blank">Free Photos Bank</a></strong></p>
<p style="margin: 0px; padding: 0px 0px 15px; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><img style="border-width: 0px; margin: 0px; padding: 0px; display: block; float: none;" src="http://i180.photobucket.com/albums/x297/banhaclong20/FreePhotosBank.jpg" alt="" width="462" height="189" /></p>
<p style="margin: 0px; padding: 0px 0px 15px; text-align: right; font-family: verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 1em; line-height: 1.6em; font-size-adjust: none; font-stretch: normal;"><em style="margin: 0px; padding: 0px;">Theo Dzine’s blog</em></p>
]]></content:encoded>
			<wfw:commentRss>http://kynangweb.com/2010/02/28/14-kho-%e1%ba%a3nh-mi%e1%bb%85n-phi-khong-th%e1%bb%83-thi%e1%ba%bfu-cho-designer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Khắc phục lỗi double-margin trên IE6</title>
		<link>http://kynangweb.com/2010/02/28/kh%e1%ba%afc-ph%e1%bb%a5c-l%e1%bb%97i-double-margin-tren-ie6/</link>
		<comments>http://kynangweb.com/2010/02/28/kh%e1%ba%afc-ph%e1%bb%a5c-l%e1%bb%97i-double-margin-tren-ie6/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 11:53:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://kynangweb.com/?p=10</guid>
		<description><![CDATA[Đây là lỗi khi ta khi ta khai báo margin-left cho 1 element có float:left or margin-right cho 1 element có float:right thì trên các trình duyệt như IE7, FF , Safari, Chrome thì không sao nhưng trên IE6 lại có chuyện xảy ra là margin-left (margin-right) có giá trị gấp đôi giá trị ta khai báo ban đầu]]></description>
			<content:encoded><![CDATA[<p>Đây là lỗi khi ta khi ta khai báo margin-left cho 1 element có float:left or  margin-right cho 1 element có float:right thì trên các trình duyệt như IE7, FF , Safari, Chrome thì không sao nhưng trên IE6 lại có chuyện xảy ra là margin-left (margin-right) có giá trị gấp đôi giá trị ta khai báo ban đầu</p>
<p>Vd:</p>
<div class="box-code">&lt;style type=&#8221;text/css&#8221;&gt;<br />
.content{<br />
float:left;<br />
margin-left:50px;<br />
background:#3399FF;    }&lt;/style&gt;<br />
&lt;div class=&#8221;content&#8221;&gt;Nội dung ở  đây&lt;/div&gt;</div>
<p>Trên IE6 ta thấy box Content này cách lề trái trình duyệt những 100px.<br />
<span style="color: #ff6600;"><strong>Khắc phục</strong></span></p>
<ul>
<li> <strong><em>Gắn thêm thuộc tính:</em></strong></li>
</ul>
<p style="padding-left: 30px;">
<div class="box-code">Ta cho thêm thuộc tính display: inline;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
.content{<br />
float:left;<br />
margin-left:50px;<br />
background:#3399FF;<br />
display: inline;<br />
} &lt;/style&gt;</div>
<ul>
<li><em><strong>Star hack:</strong></em></li>
</ul>
<p style="padding-left: 30px;">Tuy nhiên có nhiều lúc ta không thể dùng thuộc tính display:inline được , khi đó ta sẽ dùng đến cách này.</p>
<div class="box-code">.content{<br />
float:left;<br />
margin-left:50px;<br />
_margin-left:25px;<br />
background:#3399FF;<br />
margin-right:50px;<br />
}</div>
<p>Cách làm này là ta khai báo giá trị còn phân nữa để gặp IE6 thì nó gấp đôi bằng với giá trị ta mong muốn. Nhược điểm của cách  này là khi muốn margin-left là số lẻ thì không được</p>
<ul>
<li><strong><em>Chèn thêm một div:</em></strong></li>
</ul>
<p style="padding-left: 30px;">Ở cách này có vẻ mất công nhất đó là ta tách thuộc tính float:left ra ngoài một div , div bên trong thì gồm có các thuộc tính còn lại.</p>
<div class="box-code">.wrapper{float:left}<br />
.content{<br />
margin-left:50px;<br />
background:#3399FF;<br />
margin-right:50px;<br />
}</p>
<p style="padding-left: 30px;">Lúc này HTML sẽ trở thành<br />
&lt;div class=&#8221;wrapper&#8221;&gt;<br />
&lt;div class=&#8221;content&#8221;&gt;noi dung o day&lt;/div&gt;<br />
&lt;/div&gt;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://kynangweb.com/2010/02/28/kh%e1%ba%afc-ph%e1%bb%a5c-l%e1%bb%97i-double-margin-tren-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cách tính thứ tự ưu tiên trong CSS</title>
		<link>http://kynangweb.com/2010/02/28/cach-tinh-th%e1%bb%a9-t%e1%bb%b1-%c6%b0u-tien-trong-css/</link>
		<comments>http://kynangweb.com/2010/02/28/cach-tinh-th%e1%bb%a9-t%e1%bb%b1-%c6%b0u-tien-trong-css/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 11:43:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://kynangweb.com/?p=8</guid>
		<description><![CDATA[Khi ta áp dụng CSS cho một element trong file HTML thì điều đầu tiên chúng ta cần quan tâm đó là thứ tự ưu tiên của CSS vì có những lúc ta viết CSS đúng hết nhưng khi ra chạy file HTML thì lại không thấy kết quả gì cả, đó là vì CSS [...]]]></description>
			<content:encoded><![CDATA[<p>Khi ta áp dụng CSS cho một element trong file HTML thì điều đầu tiên chúng ta cần quan tâm đó là thứ tự ưu tiên của CSS vì có những lúc ta viết CSS đúng hết nhưng khi ra chạy file HTML thì lại không thấy kết quả gì cả, đó là vì CSS mà chúng ta đang viết nó không được áp dụng mà nó lại được áp dụng bởi một CSS khác.</p>
<p>Chúng ta hãy xem qua đoạn code sau</p>
<div class="box-code">
&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221;</p>
<p>&#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=utf-8&#8243; /&gt;<br />
&lt;title&gt;Untitled Document&lt;/title&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;</p>
<p>ul#menu li a:link,<br />
ul#menu li a:visited{color:#999;}</p>
<p>ul#menu li.Active a:link,<br />
ul#menu li.Active a:visited{color:#ff0000;}</p>
<p>ul#menu li a:hover{color:#ccc;}</p>
<p>ul#menu li ul li a:hover{color:#000}<br />
&lt;/style&gt;<br />
&lt;/head&gt;</p>
<p>&lt;body&gt;<br />
&lt;ul id=&#8221;menu&#8221;&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221; title=&#8221;Parent&#8221;&gt;Parent&lt;/a&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221; title=&#8221;Child&#8221;&gt;Child&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;
</p></div>
<p>Trước khi các bạn chạy file này trên trình duyệt chúng ta hãy thử nghĩ xem khi ta mouseover lên &#8220;Child&#8221; thì nó sẽ có mảu gì? Có ai nghĩ nó là màu đen không? Lúc trước mình cũng nghĩ nó là màu đen, nhưng khi chạy file này thực tế thì nó lại cho mình màu đỏ ban đầu không hề thay đổi.</p>
<p>Vậy thì sao lại thế nhỉ?</p>
<p>CSS có một cách tính thứ tự ưu tiên như sau:</p>
<div class="box-code">
Pseudo-elements và element (VD: a, p, a:hover &#8230;) có giá trị là 1<br />
class &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;có giá trị là 10<br />
id&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..có giá trị là 100<br />
inline style&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.có giá trị là 1000
</div>
<p>Bây giờ ta thử áp dụng để tính giá tri của CSS trên nhé.<br />
ul#menu li ul li a:hover{color:#000} có giá trị 1(ul) + 100(#menu) + 1(li) + 1(ul) + 1(li) + 1(a:hover) =  105</p>
<p>Còn:<br />
ul#menu li.Active a:link có giá trị 1(ul) + 100(#menu) + 1(li) + 10(.Active) + 1(a:hover) = 113</p>
<p>Vậy 113&gt;105 nên CSS bên dưới sẽ được áp dụng .</p>
<p>Nếu chúng ta muốn khi mousever lên Child có màu vàng thì ta chỉ cần viết:<br />
ul#menu li.Active a:hover{color:#fff000;}</p>
]]></content:encoded>
			<wfw:commentRss>http://kynangweb.com/2010/02/28/cach-tinh-th%e1%bb%a9-t%e1%bb%b1-%c6%b0u-tien-trong-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Một số thủ thuật fix CSS trong IE6</title>
		<link>http://kynangweb.com/2010/02/28/m%e1%bb%99t-s%e1%bb%91-th%e1%bb%a7-thu%e1%ba%adt-fix-css-trong-ie6/</link>
		<comments>http://kynangweb.com/2010/02/28/m%e1%bb%99t-s%e1%bb%91-th%e1%bb%a7-thu%e1%ba%adt-fix-css-trong-ie6/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 11:31:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://kynangweb.com/?p=6</guid>
		<description><![CDATA[
 Inability to Have Elements with Small Heights

#element{
#     background: #95CFEF;
#     border: solid 1px #36F;
#     width: 300px;
#     height: 2px;
#     margin: 30px 0;
# }

Fix #1
The cause of this bug is pretty simple: IE simply refuses to size [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li><strong> Inability to Have Elements with Small Heights</strong></li>
</ol>
<p>#element{<br />
#     background: #95CFEF;<br />
#     border: solid 1px #36F;<br />
#     width: 300px;<br />
#     height: 2px;<br />
#     margin: 30px 0;<br />
# }<img class="aligncenter size-full wp-image-151" title="4-2" src="http://kynangweb.com/wp-content/uploads/2009/11/4-2.png" alt="4-2" width="318" height="81" /></p>
<p><img class="aligncenter size-full wp-image-150" title="4-1" src="http://kynangweb.com/wp-content/uploads/2009/11/4-1.png" alt="4-1" width="320" height="59" /></p>
<h4>Fix #1</h4>
<p>The cause of this bug is pretty simple: IE simply refuses to size an element smaller than the set font size. Simply setting the font size to 0 lets you have an element as small and short as you like.</p>
<p># #element{<br />
#     background: #95CFEF;<br />
#     border: solid 1px #36F;<br />
#     width: 300px;<br />
#     height: 2px;<br />
#     margin: 30px 0;<br />
#         font-size: 0;<br />
# }</p>
<h4>Fix #2</h4>
<p>The next best way to deal with this bug is to apply <em>overflow: hidden</em> to the element so it collapses to the intended height.</p>
<p># #element{<br />
#     background: #95CFEF;<br />
#     border: solid 1px #36F;<br />
#     width: 300px;<br />
#     height: 2px;<br />
#     margin: 30px 0;<br />
#         overflow: hidden<br />
# }</p>
]]></content:encoded>
			<wfw:commentRss>http://kynangweb.com/2010/02/28/m%e1%bb%99t-s%e1%bb%91-th%e1%bb%a7-thu%e1%ba%adt-fix-css-trong-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rewrite URL với htacess</title>
		<link>http://kynangweb.com/2010/02/28/rewrite-url-v%e1%bb%9bi-htacess/</link>
		<comments>http://kynangweb.com/2010/02/28/rewrite-url-v%e1%bb%9bi-htacess/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 11:29:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[htacess]]></category>

		<guid isPermaLink="false">http://kynangweb.com/?p=4</guid>
		<description><![CDATA[Chắc hẳn các bạn đã từng thấ y các website với link (URL) đơn giản như: http://www.yoursite.com/news/1.html hoặc link phức tạp: www.yoursite.com/mod=news&#38;id=1, nếu  đem so thì  URL  đầu  tiên trông đẹp mắt và dễ nhớ hơn so với  URL thứ hai. Ngoài ra URL thứ  nhất nó còn giúp [...]]]></description>
			<content:encoded><![CDATA[<p><span>Chắc hẳn các bạn đã từng thấ y các website với link (URL) đơn giản như: http://www.yoursite.com/news/1.html hoặc link phức tạp: www.yoursite.com/mod=news&amp;id=1, nếu  đem so thì  URL  đầu  tiên trông đẹp mắt và dễ nhớ hơn so với  URL thứ hai. Ngoài ra URL thứ  nhất nó còn giúp  cho website mình thoát khỏi cặp mắt tò mò của những kẻ phá phách biết cấu trúc website của mình mà phá hoại, hơn nữa nó</span><span> còn một lợi nữa là khi các Search Engine (Google, Yahoo) index thì chúng sẽ ưu tiên với những URL dễ nhớ  như trường hợp URL thứ  nhất. Từ  đó website chúng ta sẽ dễ dàng lọt vào danh sách tìm kiếm của chúng.</span></p>
<p>Chúng ta có thể hiểu như  sau: khi chúng ta gõ link : <span>http://www.yoursite.com/news/1.html và khi requyest tới webserver nó sẽ chuyển thành  link thật sự như  sau: </span><span>www.yoursite.com/mod=news&amp;id=1. Bây giờ chúng ta hãy bắt tay vào thực hiện công việc đó nhé.</span></p>
<p><strong>Đối với Apache Server.</strong><br />
<span> Trước tiên cần bật mod mod_rewrite trong file httpd.conf lên nếu chưa bật chúng ta sẽ nhận thông báo lỗi như hình bên dưới. </span><span>Kích hoạt mod mod_rewrite có sẵn trong Apache bằng cách sữa trong file httpd.conf, bạn Find  dòng chứa rewrite_module rồii bỏ dấu # (nếu có) đi. Sau đó restart Apache. Nếu bạn dùng các host trên internet thì có thì đã có sẵn rồi.<br />
</span></p>
<div><span><img class="aligncenter size-full wp-image-134" title="htaccess-img" src="http://kynangweb.com/wp-content/uploads/2009/07/htaccess-img.gif" alt="htaccess-img" width="440" height="285" /><br />
</span></div>
<p><span><br />
Sau khi đã bật mod rewrite xong, công việc kế tiếp là tạo file .htaccess (<span style="color: #ff6600;">Lưu ý rằng tên file là .htaccess và không có phần mở rộng</span>) với nội dung sau:</span></p>
<p>RewriteEngine on<br />
Options +FollowSymlinks<br />
RewriteBase /</p>
<p>Tiếp theo  là viết cú pháp RewriteRule:<br />
RewriteRule ^Virtual_Path Real_Path</p>
<p>Ví dụ:<br />
RewriteRule ^topic_([0-9]*).html index.php?topic=$1<br />
ví dụ: topic_1.html thành index.php?topic</p>
<p><span>RewriteRule ^article/([0-9]*)/page/([0-9]*) index.php?article=$1&amp;page=$2<br />
ví d?: article/1/page/2 thành index.php?article=1&amp;page=2</p>
<p>Cú pháp  viết các Rule này giống như  cách viết câu biểu thức  Regular Expression. ví dụ như sau:</p>
<p>(.*) nhận tất cả các giá trị.<br />
([0-9]*) chỉ nhận các giá trị là số từ 0-9.<br />
([a-zA-Z]*) chỉ nhận các giá trị là chữ cái, từ  a-z và A-Z.</p>
<p>Sau khi tạo  file htaccess bạn copy nó vào thư mục gốc của website  là có thể chạy được. </span></p>
]]></content:encoded>
			<wfw:commentRss>http://kynangweb.com/2010/02/28/rewrite-url-v%e1%bb%9bi-htacess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tài liệu Javascript cơ bản</title>
		<link>http://kynangweb.com/2010/02/21/chao-moi-nguoi/</link>
		<comments>http://kynangweb.com/2010/02/21/chao-moi-nguoi/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 17:11:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Khác]]></category>

		<guid isPermaLink="false">http://kynangweb.com/?p=1</guid>
		<description><![CDATA[Đây là cuốn ebook Javascript do trường Đại học qốc gia Hà Nội biên soạn , sách viết khá chi tiết và cơ bản  kèm theo các ví dụ giúp người mới học có thể học Javascript một cách nhanh chóng.
Chúc các bạn có thể học Javascript được dễ dàng và nhanh chóng
Download tại [...]]]></description>
			<content:encoded><![CDATA[<p>Đây là cuốn ebook Javascript do trường Đại học qốc gia Hà Nội biên soạn , sách viết khá chi tiết và cơ bản  kèm theo các ví dụ giúp người mới học có thể học Javascript một cách nhanh chóng.</p>
<p><em>Chúc các bạn có thể học Javascript được dễ dàng và nhanh chóng</em></p>
<p><a title="Tài liệu javascript cơ bản" href="http://www.adrive.com/public/ee9add3493b46d6f656b233920470f3f8a8fbe060fd888ccf9c91321eb207254.html" target="_blank">Download tại đây</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kynangweb.com/2010/02/21/chao-moi-nguoi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
