<?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; display</title>
	<atom:link href="http://www.rainmoe.com/tag/display/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rainmoe.com</link>
	<description>One code, one world ...</description>
	<lastBuildDate>Thu, 29 Dec 2011 14:04:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>jQuery悬停元素弹动与内联元素</title>
		<link>http://www.rainmoe.com/2009/12/02/jquery-mouseover-effect-to-make-elements-moving/</link>
		<comments>http://www.rainmoe.com/2009/12/02/jquery-mouseover-effect-to-make-elements-moving/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 16:23:40 +0000</pubDate>
		<dc:creator>小邪</dc:creator>
				<category><![CDATA[代码 [Code]]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[element]]></category>
		<category><![CDATA[hover]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mouse]]></category>

		<guid isPermaLink="false">http://www.evlos.org/?p=1246</guid>
		<description><![CDATA[> 呵呵，这次讲一讲 jQuery 鼠标悬停时候的元素弹动效果，还有重要的内联元素概念。

> 元素弹动是指鼠标悬停某个元素，比如 DIV 上的时候，DIV 会向某个方向弹过去。



<span class="readmore"><a href="http://www.rainmoe.com/2009/12/02/jquery-mouseover-effect-to-make-elements-moving/" title="jQuery悬停元素弹动与内联元素">阅读全文——共4584字</a></span>]]></description>
			<content:encoded><![CDATA[<p>> 呵呵，这次讲一讲 jQuery 鼠标悬停时候的元素弹动效果，还有重要的内联元素概念。<br />
> 元素弹动是指鼠标悬停某个元素，比如 DIV 上的时候，DIV 会向某个方向弹过去。</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/old/unnamed-21.jpg" /></p>
<p>> 如图分别使用了 Display:block 与使用 Display:inline 的 CSS 效果代码，左边的并不美观。<br />
> 而右边的非常在整齐，这就是神奇并且必备的 Display 参数，而 Inline 表示此元素为内联元素。</p>
<p><span id="more-1246"></span>1. <strong>关于Display的属性</strong>：</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/old/Capture0555.jpg" /></p>
<p>2. <strong>使用 Display:block 实现可移动效果</strong>：</p>
<p>> 好吧，实际上 Inline 和今天要说的 jQuery 的关系是反的。因为我们用了 Inline 就不能使用弹动效果了。<br />
> 内联元素就是在一行内的元素，只能放在行内；块级元素，就是一个四方块，可以放在页面上任何地方。<br />
> 因为 Inline 是内联元素，而 Block 是块级元素，所以这里只能使用 Block 来实现此效果。</p>
<p>> 至于把那些字给水平居中就使用 padding-top:0.5em; 即可，顶部填充0.5个字的长度。</p>
<p>> 下面的代码可以使 Id 为 momo 的 DIV 实现弹动效果。</p>
<pre class="brush: jscript; auto-links: false; html-script: false; title: ; notranslate">
jQuery(document).ready(function($){
$(&quot;#momo&quot;).hover(function (){
	$(this).stop().animate({marginTop:&quot;15px&quot;}, 350,&quot;easeOutBounce&quot;);
	}
	,function () {
    $(this).stop().animate({marginTop:&quot;0px&quot;}, 150,&quot;easeOutBounce&quot;);
	});
});
});
</pre>
<p>> 同时需要 Jquery.easing 插件的支持，所以请将以下代码加入你的 JS文件。<br />
> 灵活使用 Jquery.easing 插件可以实现很多弹动效果，更多的请询问谷歌，谢谢 ^_^。</p>
<p>3. <strong>Jquery.easing 插件代码</strong>：</p>
<p>> 下面是灰常强大的 Jquery.easing.1.3 的全部代码，去掉了些没营养的东西：</p>
<pre class="brush: jscript; auto-links: false; html-script: false; title: ; notranslate">
// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) &lt; 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, t, b, c, d) {
		if ((t/=d/2) &lt; 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) &lt; 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) &lt; 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) &lt; 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) &lt; 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a &lt; Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a &lt; Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
		if (a &lt; Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t &lt; 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		if ((t/=d/2) &lt; 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
		if ((t/=d) &lt; (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t &lt; (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t &lt; (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t &lt; d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.rainmoe.com/2009/12/02/jquery-mouseover-effect-to-make-elements-moving/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>正确的使用微软雅黑</title>
		<link>http://www.rainmoe.com/2009/10/17/use-microsoft-font/</link>
		<comments>http://www.rainmoe.com/2009/10/17/use-microsoft-font/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 06:12:30 +0000</pubDate>
		<dc:creator>小邪</dc:creator>
				<category><![CDATA[奇客 [Geek]]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[micro]]></category>

		<guid isPermaLink="false">http://www.evlos.org/2009/10/17/%e6%ad%a3%e7%a1%ae%e7%9a%84%e4%bd%bf%e7%94%a8%e5%be%ae%e8%bd%af%e9%9b%85%e9%bb%91/</guid>
		<description><![CDATA[这张图是未经过设置的微软雅黑的效果

好难看的 



<span class="readmore"><a href="http://www.rainmoe.com/2009/10/17/use-microsoft-font/" title="正确的使用微软雅黑">阅读全文——共52字</a></span>]]></description>
			<content:encoded><![CDATA[<p>这张图是未经过设置的微软雅黑的效果<br />
好难看的 </p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/old/Capture007.jpg" /></p>
<p><span id="more-553"></span>下面呢 在桌面属性的外观的效果处<br />
如图设置即可 </p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/old/Capture008.jpg" /></p>
<p>然后就好看啦 哈哈 ~</p>
<p><img src="http://www.rainmoe.com/wp-content/uploads/old/Capture009.jpg" /><br />
　</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rainmoe.com/2009/10/17/use-microsoft-font/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached (Feed is rejected)
Page Caching using memcached
Database Caching 1/19 queries in 0.013 seconds using memcached
Object Caching 240/289 objects using memcached

Served from: www.rainmoe.com @ 2012-02-09 17:05:51 -->
