﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[守望幸福]]></title> 
<description><![CDATA[地瓜的博客]]></description>
<link>http://etosun.com</link>
<language>zh-cn</language>
<generator>www.emlog.net</generator>

<item>
	<title>不轻易使用position方式设置水平居中</title>
	<link>http://etosun.com/?post=62</link>
	<description><![CDATA[<p>
	position:absoute;left:50%;margin:0 0 0 -*px;这种方式设置水平居中的ie7下可能会有bug，如图：<br />
	<br />
	<a href="http://etosun.com/content/uploadfile/201001/1263894285_98839eb9.png" target="_blank"><img alt="点击在新窗口中浏览此图片" border="0" src="http://etosun.com/content/uploadfile/201001/1263894285_98839eb9.png" title="点击在新窗口中浏览此图片" /></a></p><p><a href="http://etosun.com/?post=62">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Tue, 19 Jan 2010 17:50:06 +0000</pubDate>
	<author>cosa</author>
	<guid>http://etosun.com/?post=62</guid>

</item>
<item>
	<title>细节，虚线框算不算？</title>
	<link>http://etosun.com/?post=61</link>
	<description><![CDATA[<p>
	看图说话：<br /><a href="http://etosun.com/content/uploadfile/201001/1262282400_46811823.png" target="_blank"><img alt="点击在新窗口中浏览此图片" border="0" src="http://etosun.com/content/uploadfile/201001/1262282400_46811823.png" title="点击在新窗口中浏览此图片" /></a><br /><br />
	你觉得图上的虚线框碍眼吗？好吧，也许你会说这个框只是&ldquo;瞬间&rdquo;出现而已，有必要折腾吗？作为一个搞艺术的，我想说：一点点的遗憾是残缺美，整页的遗憾就是残疾了。<br /><br />
	这里我们仅讨论ie6&amp;&amp;ie7下bt的虚线框。虚线框的高度跟字体、加粗与否无关。正常的虚框高度 = 字号+2(边框)。经测试，默认情况下，18px以下字号虚线框的高...</p><p><a href="http://etosun.com/?post=61">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Fri, 01 Jan 2010 02:01:38 +0000</pubDate>
	<author>cosa</author>
	<guid>http://etosun.com/?post=61</guid>

</item>
<item>
	<title>寂寞的熊猫</title>
	<link>http://etosun.com/?post=60</link>
	<description><![CDATA[<p>
	<a href="http://etosun.com/content/uploadfile/200912/1261059943_680943a8.jpg" target="_blank"><img alt="点击在新窗口中浏览此图片" border="0" src="http://etosun.com/content/uploadfile/200912/1261059943_680943a8.jpg" title="点击在新窗口中浏览此图片" /></a></p><p><a href="http://etosun.com/?post=60">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Thu, 17 Dec 2009 22:26:11 +0000</pubDate>
	<author>cosa</author>
	<guid>http://etosun.com/?post=60</guid>

</item>
<item>
	<title>内裤是可以外穿的</title>
	<link>http://etosun.com/?post=59</link>
	<description><![CDATA[<p>
	&nbsp;&nbsp;&nbsp;&nbsp;不穿内裤的不是超人；<br />
	&nbsp;&nbsp;&nbsp;&nbsp;天天把内裤穿外面的不是超人；<br />
	&nbsp;&nbsp;&nbsp;&nbsp;把内裤穿外面却飞不起来的也不是超人；<br />
	&nbsp;&nbsp;&nbsp;&nbsp;内裤外穿有三要素：人物、地点、事件。跟小说很像吧，其实这本来就是一个传说 。</p><p><a href="http://etosun.com/?post=59">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Sun, 01 Nov 2009 12:09:27 +0000</pubDate>
	<author>cosa</author>
	<guid>http://etosun.com/?post=59</guid>

</item>
<item>
	<title>杭州两块男</title>
	<link>http://etosun.com/?post=57</link>
	<description><![CDATA[<p>
	&nbsp;&nbsp;&nbsp;&nbsp;最新消息，武汉的六块女小分队已成功转移到到杭州，战略战术也做了升级：美女变大叔，六块33折&hellip;&hellip;热烈祝贺六块女成功转型为两块男<br />
	&nbsp;&nbsp;&nbsp;&nbsp;转型后的块男成功的避开了policer强烈的攻势。他们低调、蛋腚、沉着、冷静&hellip;&hellip;<br />
	&nbsp;&nbsp;&...</p><p><a href="http://etosun.com/?post=57">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Mon, 12 Oct 2009 20:57:22 +0000</pubDate>
	<author>cosa</author>
	<guid>http://etosun.com/?post=57</guid>

</item>
<item>
	<title>jQuery lightBox plugin 在IE下的一个bug</title>
	<link>http://etosun.com/?post=56</link>
	<description><![CDATA[对于IE的透明滤镜，当文档高度大于32767px的时候就会抽风。而jQuery lightBox plugin 对于半透明背景的高度是这样定义的：<br/><div class="code"> $(’#jquery-overlay’).css(&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;width:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;arrPageSizes&#91;0&#93;,<br/>&nbsp;&nbsp;&nbsp;&nbsp;height:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;arrPageSizes&#91;1&#93;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;);</div><br/>arrPageSizes[1] 是pageHeight的高度，当pageHeight大于32767px 的时候bug就出现了。<br/><br/>在IE6下#jquery-overlay的高度应该是浏览器窗口可视高度+滚动条顶部的偏移，其它浏览器直接高度设置成浏览器窗口可视高度并设置position:fixed就可以了，然后对于IE6还要在拖动滚动条时重置#jquery-overlay的位置。]]></description>
	<pubDate>Tue, 29 Sep 2009 10:30:19 +0000</pubDate>
	<author>cosa</author>
	<guid>http://etosun.com/?post=56</guid>

</item>
<item>
	<title>javascript静态方法</title>
	<link>http://etosun.com/?post=54</link>
	<description><![CDATA[1、常规方法与静态方法的区别只在于prototype关键字的使用与否<br/>2、静态方法只能在function外声明<br/>$.extend扩展的是jquery的静态方法。因此不需要实例化对象&#123;$()&#125;就能使用。<br/>$.fn.extend 扩展是原型protetype方法。需要类的实例调用<br/>Exp:<br/><div class="code">&lt;script type=&quot;text/javascript&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;//创建一个类Employee作为基类<br/>&nbsp;&nbsp;&nbsp;&nbsp;var Employee = function(name,dept)&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.name = name &amp;#124;&amp;#124; &quot;none&quot;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this.dept = dept &amp;#124;&amp;#124; &quot;general&quot;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Employee.prototype.toString = function()&#123;&nbsp;&nbsp;//toString是Employee类的常规方法<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return this.name + &quot;&amp;&quot; + this.dept;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;Employee.show = function (ep)&#123;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//show是Employee类的静态方法<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(ep.toString());<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/>&nbsp;&nbsp;&nbsp;&nbsp;var ep = new Employee(&quot;fanrong&quot;,&quot;技术部&quot;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;Employee.show(ep);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//只能由类调用,不能由实例对象调用.<br/>&nbsp;&nbsp;&nbsp;&nbsp;//ep.show(ep);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//这样回出错<br/>&lt;/script&gt;<br/></div>]]></description>
	<pubDate>Thu, 25 Jun 2009 11:15:21 +0000</pubDate>
	<author>cosa</author>
	<guid>http://etosun.com/?post=54</guid>

</item>
<item>
	<title>overflow:visible后的button</title>
	<link>http://etosun.com/?post=52</link>
	<description><![CDATA[<p>
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;button在ie6、ie7下会有个随着文字长度增减而改变的&quot;内补丁&quot;(暂且这么叫吧)。这个内补丁很特殊，不管你怎么写margin:0;padding:0;都去不掉，唯一的解决办法是overflow:visible。如果这时候再定义button的height、line-height就会发现在ie下bu...</p><p><a href="http://etosun.com/?post=52">阅读全文&gt;&gt;</a></p>]]></description>
	<pubDate>Thu, 23 Apr 2009 23:26:00 +0000</pubDate>
	<author>cosa</author>
	<guid>http://etosun.com/?post=52</guid>

</item>
<item>
	<title>flash跨域调用外部js</title>
	<link>http://etosun.com/?post=51</link>
	<description><![CDATA[公司有个需求要做视频播放器，做完了本机调试OK，发给技术就不能用了，忙活了半天猛地被提醒说会不会是跨域的问题，flash播放器和js不在统一子域下……ok，跨域是吧，谷歌一下，解决方法:<br/><div class="code">&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot; /&gt;<br/>allowScriptAccess=“always”</div><br/>retry……搞定……]]></description>
	<pubDate>Thu, 05 Mar 2009 23:24:41 +0000</pubDate>
	<author>cosa</author>
	<guid>http://etosun.com/?post=51</guid>

</item>
<item>
	<title>Opera、firefox添加收藏的方法</title>
	<link>http://etosun.com/?post=49</link>
	<description><![CDATA[<div class="code">&lt;a rel=&quot;sidebar&quot; href=&quot;http://cosa.elianba.com&quot; title=&quot;elianba.com&quot;&gt;elianba.com&lt;/a&gt;</div><br/>关键是：rel="sidebar"，不用脚本，浏览器会自动识别<br/><a rel="sidebar" href="http://cosa.elianba.com" title="elianba.com">试一下</a><br/>IE6、Firefox2侧栏中打开页面：<br/><div class="code">&lt;a target=&quot;_search&quot; href=&quot;http://cosa.elianba.com&quot; title=&quot;elianba.com&quot;&gt;elianba.com&lt;/a&gt;</div><br/><a target="_search" href="http://cosa.elianba.com" title="elianba.com">试一下</a><br/>改变文字选中后的背景色（IE下无效）：<br/><div class="code">*::-moz-selection &#123; background-color:#663399; color:#FFFFFF; &#125;</div>]]></description>
	<pubDate>Tue, 16 Dec 2008 08:42:48 +0000</pubDate>
	<author>cosa</author>
	<guid>http://etosun.com/?post=49</guid>

</item></channel>
</rss>