<?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>丰歌 &#187; jQuery</title>
	<atom:link href="http://fengyouyi.com/tag/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://fengyouyi.com</link>
	<description>一个懒人的个人博客</description>
	<lastBuildDate>Fri, 18 May 2012 03:39:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>jQuery KinSlideshow 在 Chrome 浏览器下不显示的问题</title>
		<link>http://fengyouyi.com/212</link>
		<comments>http://fengyouyi.com/212#comments</comments>
		<pubDate>Tue, 10 Apr 2012 07:13:01 +0000</pubDate>
		<dc:creator>Ulysses</dc:creator>
				<category><![CDATA[代码]]></category>
		<category><![CDATA[工具]]></category>
		<category><![CDATA[记录]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Slider]]></category>

		<guid isPermaLink="false">http://fengyouyi.com/?p=212</guid>
		<description><![CDATA[jQuery KinSlideshow plugin 插件用来做幻灯片图片展示效果，很方便，所以用得较多。但是最近发现部分页面在 Google Chrome 浏览器下幻灯片不显示。经过测试，发现是在 IMG 标签中少写了 WIDTH / HEIGHT 属性所致。看来偷懒是不行的。 解决方法也就很简单了，把 WIDTH、HEIGHT、ALT 什么的属性，都写上，就没问题了。]]></description>
			<content:encoded><![CDATA[<p>jQuery KinSlideshow plugin 插件用来做幻灯片图片展示效果，很方便，所以用得较多。但是最近发现部分页面在 Google Chrome 浏览器下幻灯片不显示。经过测试，发现是在 <code>IMG</code> 标签中少写了 <code>WIDTH</code> / <code>HEIGHT</code> 属性所致。看来偷懒是不行的。</p>
<p>解决方法也就很简单了，把 <code>WIDTH</code>、<code>HEIGHT</code>、<code>ALT</code> 什么的属性，都写上，就没问题了。</p>
]]></content:encoded>
			<wfw:commentRss>http://fengyouyi.com/212/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery：几行代码实现简单选项卡TABS效果</title>
		<link>http://fengyouyi.com/173</link>
		<comments>http://fengyouyi.com/173#comments</comments>
		<pubDate>Sat, 04 Feb 2012 02:30:38 +0000</pubDate>
		<dc:creator>Ulysses</dc:creator>
				<category><![CDATA[代码]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://fengyouyi.com/?p=173</guid>
		<description><![CDATA[做个记录。 &#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62; &#60;html xmlns="http://www.w3.org/1999/xhtml"&#62; &#60;head&#62; &#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62; &#60;title&#62;尝试用 jQuery 实现选项卡功能&#60;/title&#62; &#60;style type="text/css"&#62; page { font-size: 12px; padding: 40px; } ul { padding: 0; margin: 0; list-style: none; } h2 { font-size: 12px; padding: 0; margin: 0; } .tabs { width: 403px; height: 108px; border: 1px [...]]]></description>
			<content:encoded><![CDATA[<p>做个记录。</p>
<pre class="code">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;尝试用 jQuery 实现选项卡功能&lt;/title&gt;
&lt;style type="text/css"&gt;
page {
	font-size: 12px;
	padding: 40px;
}
ul {
	padding: 0;
	margin: 0;
	list-style: none;
}
h2 {
	font-size: 12px;
	padding: 0;
	margin: 0;
}

.tabs {
	width: 403px;
	height: 108px;
	border: 1px solid #CCC;
}
.tabs li {
	line-height: 26px;
	height: 28px;
	float: left;
	position: relative;
}
.tabs h2 {
	text-align: center;
	background: #EEE;
	width: 100px;
	border-left: 1px solid #CCC;
	border-bottom: 1px solid #CCC;
	cursor: pointer;
}
.tabs h2.active {
	background: #FFF;
	border-bottom: 1px solid #FFF;
}
.tabs .tab_0 h2 {
	border-left: none;
}
.tabs .tab_0 div {
	display: block;
}
.tabs div {
	background: #FFF;
	display: none;
	width: 363px;
	height: 40px;
	border-top: none;
	padding: 20px;
	position: absolute;
	top: 28px;
	left: 0;
}

.tab_0 div {
	left: 0;
}
.tab_1 div {
	left: -100px;
}
.tab_2 div {
	left: -201px;
}
.tab_3 div {
	left: -302px;
}
&lt;/style&gt;
&lt;script type="text/javascript" language="javascript" src="scripts/jquery-1.7.1.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" language="javascript"&gt;
$(function() {
	$(".tabs li").hover(function() {
		$(this).siblings().children("h2").removeClass("active");
		$(this).siblings().children("div").hide();
		$(this).children("h2").addClass("active");
		$(this).children("div").show();
	}, function() {
		//
	});
});
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div class="tabs"&gt;
	&lt;ul&gt;
    	&lt;li class="first tab_0"&gt;
        	&lt;h2 class="active"&gt;选项卡一&lt;/h2&gt;
            &lt;div&gt;
            	选项卡一的内容
            &lt;/div&gt;
        &lt;/li&gt;
    	&lt;li class="tab_1"&gt;
        	&lt;h2&gt;选项卡二&lt;/h2&gt;
            &lt;div&gt;
            	选项卡二的内容
            &lt;/div&gt;
        &lt;/li&gt;
    	&lt;li class="tab_2"&gt;
        	&lt;h2&gt;选项卡三&lt;/h2&gt;
            &lt;div&gt;
            	选项卡三的内容
            &lt;/div&gt;
        &lt;/li&gt;
    	&lt;li class="tab_3"&gt;
        	&lt;h2&gt;选项卡四&lt;/h2&gt;
            &lt;div&gt;
            	选项卡四的内容
            &lt;/div&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://fengyouyi.com/173/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

