<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[芃恺的小筑]]></title>
<link>http://www.yiduren.com/blog/</link>
<description><![CDATA[hello, Spring!]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[kaman@live.com(天晴)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>芃恺的小筑</title>
	<url>http://www.yiduren.com/blog/images/logos.gif</url>
	<link>http://www.yiduren.com/blog/</link>
	<description>芃恺的小筑</description>
</image>

			<item>
			<link>http://www.yiduren.com/blog/article/61.htm</link>
			<title><![CDATA[First snow]]></title>
			<author>kaman@live.com(pengkai)</author>
			<category><![CDATA[MyLife]]></category>
			<pubDate>Sun,27 Dec 2009 19:17:18 +0800</pubDate>
			<guid>http://www.yiduren.com/blog/default.asp?id=61</guid>
		<description><![CDATA[haha , snowing...&nbsp;&nbsp;the first snow @ this city.<br/>花了点时间 更新了一下首页 :-)&nbsp;&nbsp; enjoy.]]></description>
		</item>
		
			<item>
			<link>http://www.yiduren.com/blog/article/60.htm</link>
			<title><![CDATA[触屏界面的按钮文本设计原则]]></title>
			<author>kaman@live.com(pengkai)</author>
			<category><![CDATA[Design]]></category>
			<pubDate>Thu,19 Nov 2009 21:50:20 +0800</pubDate>
			<guid>http://www.yiduren.com/blog/default.asp?id=60</guid>
		<description><![CDATA[网上淘得一简短但实用的文字，看图说话即可。同样适用于广大的PC屏幕。<br/>以下译文↓<br/><br/>一幅画可能包含了千言万语，但是一个用户界面却需要用简洁的语句明确地告诉用户该做什么。因此决定哪些文字应该出现，哪些文字应该是界面设计非常重要的一部分。以下是四个适用于触摸屏界面的文本添加原则，遵循这些一定有助于提升界面的可用性。<br/><br/>原则1<br/><br/><span style="font-size:16pt">用动词来描述一个按钮是用来做什么的。</span><br/>如果不是直接用动词描述，用户可能会感到困惑，并且增加学习的成本。所以&#34;OK&#34;和&#34;Cancel&#34;并不是最佳选择，“Yes”和“No”则更差。<br/><br/><img src="http://www.yiduren.com/blog/attachments/month_0911/72009111921451.jpg" border="0" alt=""/><br/><br/>原则2<br/><br/><span style="font-size:16pt">把文本的重点放在最前面的12个字符上</span><br/>（注：12个字符是英文，对于中文来说可能就是三四个字）。人们阅读地时候总是扫描文字，所以大家可以比较一下这两句话：<br/><br/>“您正要进行关机，确认吗？”<br/>“关机吗？”<br/><br/>同样的意思但是哪一句您阅读地更快呢？<br/><br/><img src="http://www.yiduren.com/blog/attachments/month_0911/e20091119214522.jpg" border="0" alt=""/><br/><br/>原则3<br/><br/><span style="font-size:16pt">按钮的文本应该置于按钮本身而不是列在旁边。</span><br/>研究显示多数触摸屏用户会触碰按钮的下半部，所以我们也建议把文字从垂直居中的位置上提一点，这样用户在按下按钮的同时，文本不容易被手指遮挡。<br/><br/><img src="http://www.yiduren.com/blog/attachments/month_0911/g20091119214533.jpg" border="0" alt=""/><br/><br/>原则4<br/><br/><span style="font-size:16pt">减少重复。</span><br/>如果在一组按钮中一样的文字不断重复，那就把这些按钮放到一组，用一个标题来简化文本内容。或者有些情况下可以直接去掉这些重复的文字。这有助于帮助你的用户快速定位他需要进行的操作。<br/><br/><img src="http://www.yiduren.com/blog/attachments/month_0911/x20091119214538.jpg" border="0" alt=""/><br/><br/>实际情况中我们不可能永远应用这四点，但是完全可以把这些思想灵活运用在界面设计中。<br/><br/>原文链接：Labeling Touchscreen Interfaces<br/>译者：JJ.Ying<br/><br/><br/><br/><br/>]]></description>
		</item>
		
			<item>
			<link>http://www.yiduren.com/blog/article/59.htm</link>
			<title><![CDATA[情系人人·感动常在]]></title>
			<author>kaman@live.com(pengkai)</author>
			<category><![CDATA[MyLife]]></category>
			<pubDate>Tue,27 Oct 2009 19:30:27 +0800</pubDate>
			<guid>http://www.yiduren.com/blog/default.asp?id=59</guid>
		<description><![CDATA[看了人人的宣传片，让我感动了一把。<br/>改变·坚持·联系·信任<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/flash.gif" alt="" style="margin:0px 2px -3px 0px" border="0"/>Flash动画</div><div class="UBBContent"><a id="temp46091_href" href="http://www.yiduren.com/blog/javascript:MediaShow('swf','temp46091','http://www.yiduren.com/meizu_flv/meizu_flv.swf','400','300')"><img name="temp46091_img" src="http://www.yiduren.com/blog/images/mm_snd.gif" style="margin:0px 3px -2px 0px" border="0" alt=""/><span id="temp46091_text">在线播放</span></a><div id="temp46091"></div></div></div>]]></description>
		</item>
		
			<item>
			<link>http://www.yiduren.com/blog/article/58.htm</link>
			<title><![CDATA[Flash player&#39;s BUG - stageWidth &amp; stageHeight ]]></title>
			<author>kaman@live.com(pengkai)</author>
			<category><![CDATA[Actionscritp]]></category>
			<pubDate>Mon,12 Oct 2009 00:34:54 +0800</pubDate>
			<guid>http://www.yiduren.com/blog/default.asp?id=58</guid>
		<description><![CDATA[bug概述：<br/>flash在生成以后其stageWidth和stageHeight属性的值为0. <br/><br/>为了更直观的查看效果，我们添加一个TextFiled对象到显示列表并设置它的x、y分别为舞台水平、垂直中心（舞台中心）。<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>代码片段：<br/>TXT.x = stage.stageWidth/2;<br/>TXT.y = stage.stageHeight/2;<br/>trace(TXT.x,TXT.y); //0,0<br/></div></div><br/>发现TXT的位置并没有在舞台中心。而是在(0,0)处。<br/><br/>在网上淘到一篇资料，说是flash player的bug 。<br/>bug解决办法：<br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent"><br/>触发stage的Resize事件，即可返回正常值。<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>stage.scaleMode = StageScaleMode.NO_SCALE;<br/>stage.align = StageAlign.TOP_LEFT;<br/>stage.addEventListener(Event.RESIZE,onResize);<br/>private function onResize(e:Event):void{<br/>&nbsp;&nbsp; trace(stage.stageWidth,stage.stageHeight);//550,400 舞台默认大小<br/>}<br/></div></div><br/></div></div><br/><br/>资料：<br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent"><br/><span style="font-size:18pt">Stage RESIZE and the stageWidth and stageHeight Bug</span> <br/> while ago, I came across a situation wh&#101;re my Flash application would launch but the stage.stageWidth and stage.stageHeight properties would always return 0 within my document class’s constructor. As I needed to access those properties at runtime and I did not want to hardcode those values to a pair of variables, it drove me to seek an answer to this problem.<br/><br/>Turns out that when the stage is initialized, its stageWidth and stageHeight properties are 0 until a Stage RESIZE event is triggered. This event is dispatched when the scaleMode property of the Stage object is set to StageScaleMode.NO_SCALE and the SWF file is resized ie. when the stage is rendered by the Flash Player. So if you need to add a display object onto the stage and its positioning is dependent on the stageWidth o&#114; stageHeight properties at runtime, it’s best handled by a listener that is subscribed to the Stage RESIZE event.<br/><br/>Interestingly, despite universal claim that the Flash Player behaves exactly the same on all browsers, this problem only appears in a couple of browser/plugin configurations, namely FireFox/OSX and IE/Win. And strangely, on Safari and Firefox/Win, the RESIZE event is not even dispatched on page load, and neither does the Flash Player register the stageWidth and stageHeight properties as being 0. I have not tested the problem on other platforms but you are certainly welcome to do so yourselves and report your observations in the comments section. Eventually, it would be nice if we can get a straight answer from Adobe concerning this bug.<br/><br/>In the following demo code, I’ve attached a Sprite containing a Rectangle graphic and a TextField, to the stage once before the RESIZE event and once, after. You can see the results here.<br/><br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>package<br/>{<br/>&nbsp;&nbsp;import flash.text.*;<br/>&nbsp;&nbsp;import flash.display.*;<br/>&nbsp;&nbsp;import flash.events.*;<br/><br/>&nbsp;&nbsp;public class Demo extends Sprite<br/>&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;private var rect1:Sprite;<br/>&nbsp;&nbsp;&nbsp;&nbsp;private var rect2:Sprite;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;public function Demo()<br/>&nbsp;&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rect1 = cr&#101;ateNewRect(&#34;Before stage resize event.&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rect1.x = 0;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rect1.y = 0;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addChild(rect1);<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stage.scaleMode = StageScaleMode.NO_SCALE;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stage.align = StageAlign.TOP_LEFT;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stage.addEventListener(Event.RESIZE, resizeHandler);<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;private function cr&#101;ateNewRect(str:String):Sprite<br/>&nbsp;&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var rect:Sprite = new Sprite();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rect.graphics.beginFill(0x99CCFF);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rect.graphics.drawRect(0, 0, 200, 100);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rect.graphics.endFill();<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var fmt:TextFormat = new TextFormat();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fmt.font = &#34;Arial&#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fmt.size = 12;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var tf:TextField = new TextField();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tf.width = 200;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tf.height = 100;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tf.multiline = true;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tf.defaultTextFormat = fmt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tf.text = str + &#34;\n&#34; + &#34;stage.stageWidth: &#34; + stage.stageWidth + &#34;\n&#34; +<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#34;stage.stageHeight: &#34; + stage.stageHeight;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rect.addChild(tf);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return rect;<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;private function resizeHandler( event:Event ):void<br/>&nbsp;&nbsp;&nbsp;&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (rect2 != null &amp;&amp; contains(rect2)) {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;removeChild(rect2);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rect2 = cr&#101;ateNewRect(&#34;After stage resize event.&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rect2.x = (stage.stageWidth - rect2.width) / 2;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rect2.y = (stage.stageHeight - rect2.height) / 2;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addChild(rect2);<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;}<br/>}<br/><br/><br/></div></div><br/><br/></div></div><br/><br/>查看:<a href="http://hubflanger.com/stage-resize-and-the-stagewidth-and-stageheight-properties/" target="_blank" rel="external">http://hubflanger.com/stage-resize-and-the-stagewidth-and-stageheight-properties/</a><br/>更新：<br/>在初始化的时候 加入stage.dispatchEvent(new Event(Event.RESIZE)); <br/>即可 实现初始化时就调度Resize事件。<br/><a href="http://www.kirupa.com/developer/as3/resizing_centering_as3.htm" target="_blank" rel="external">http://www.kirupa.com/developer/as3/resizing_centering_as3.htm</a>]]></description>
		</item>
		
			<item>
			<link>http://www.yiduren.com/blog/article/57.htm</link>
			<title><![CDATA[FDT+Eclipse 开发环境搭建]]></title>
			<author>kaman@live.com(Kaman)</author>
			<category><![CDATA[Actionscritp]]></category>
			<pubDate>Mon,21 Sep 2009 22:40:44 +0800</pubDate>
			<guid>http://www.yiduren.com/blog/default.asp?id=57</guid>
		<description><![CDATA[今天感叹一句，FDT(Flash Development Tools)确实很强大！得益于Eclipse的支持，代码提示、折叠功能很好用。<br/><br/><strong>1.安装Eclipse</strong><br/>Eclipse 无需安装，下载完成解压即可使用。<br/>官方下载：<span style="color:Green">http://www.eclipse.org/downloads/</span><br/>请选择Eclipse Classic版本，目前最新的是3.5.0 (162 MB)<br/><img src="http://www.yiduren.com/blog/attachments/month_0909/x2009921215838.jpg" border="0" alt=""/><br/><br/><strong>2.安装FTD</strong><br/>这里我们选择在线安装。打开Eclipse，工具栏 Help – Install New Software<br/>在弹出的窗口中 work with栏填入：<span style="color:Green">http://fdt.powerflasher.com/up&#100;ate</span><br/>Type filter text 填入: <span style="color:Green">FTD</span><br/>稍等片刻，下面的列表框会出现如下选项，这里我们选择 <span style="color:Green">FDT Professional </span>专业版。<br/><img src="http://www.yiduren.com/blog/attachments/month_0909/0200992122623.jpg" border="0" alt=""/><br/>Next以后就会出现下载进度，稍等片刻，等待下载完成即可。<br/>完成以后会提示重启Eclipse.<br/><br/><strong>3.选择配置</strong><br/>Eclipse默认的是Java开发环境，我们现在改成FDT开发环境。<br/>点击右上角的加号<br/>在弹出的窗口中选择<span style="color:Green">Flash FDT</span><br/>(图片系成功安装之后的演示操作，和未安装前略有不同)<br/><img src="http://www.yiduren.com/blog/attachments/month_0909/e2009921221551.jpg" border="0" alt=""/><br/><br/>至此我们就可以进行Flash的AS编码开发了。<br/>在左侧Flash Explorer中点击右键 <span style="color:Green">New</span> – <span style="color:Green">New Flash Project</span> 新建Flash项目<br/><img src="http://www.yiduren.com/blog/attachments/month_0909/62009921223335.jpg" border="0" alt=""/><br/><br/>其他详细功能研究中。<br/><br/>附：<strong>FDT注册码</strong><br/>Name: <span style="color:Green">snowkit.cn</span><br/>Code: <span style="color:Green">x0tbr0m4qs31434u855s618eh6p37klb35p86ik1626765t77644pt</span><br/><br/><strong>FDT常用快捷键：</strong><br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent"><br/>Ctrl+/&nbsp;&nbsp;打开代码提示（需要代码提示时按此快捷键即可）[以下摘自网络]<br/><br/>Ctrl + Shift +L：显示所有可用的热键<br/><br/>F3：打开声明<br/><br/>F4：打开类型层次结构<br/><br/>F5：打开超级实现<br/><br/>CTRL +SPACE：内容协助<br/><br/>Ctrl +1 ：快速协助<br/><br/>Ctrl + Shift + O ：组织导入<br/><br/>Ctrl + Shift +F：自动格式化[ 20 ]<br/><br/>Ctrl + Shift + R：打开资源<br/><br/>CTRL + R：参考搜索（专业版）<br/><br/>CTRL + T：快速类型层次结构（专业版）<br/><br/>CTRL + O ：快速大纲（专业版）<br/><br/>CTRL + U ：快速查看文件中出现的位置（专业版）<br/><br/>Ctrl+Shift+D：复制一行<br/><br/>Ctrl+D：删除一行<br/><br/>Alt+Shift+R：重命名<br/><br/>Ctrl+7：注释行<br/></div></div><br/><br/>欲了解更多请下载官方帮助文档：<br/>官方下载：<a href="http://fdt.powerflasher.com/blog/wp-content/fdtuserguide.pdf" target="_blank" rel="external">http://fdt.powerflasher.com/blog/wp-content/fdtuserguide.pdf</a><br/><br/>发现一篇简易教程，不过版本有点旧，安装过程有点不太一样，但大致如此可以参考。<br/><a href="http://eidiot.net/lessons/fdt/index.htm" target="_blank" rel="external">http://eidiot.net/lessons/fdt/index.htm</a>]]></description>
		</item>
		
			<item>
			<link>http://www.yiduren.com/blog/article/56.htm</link>
			<title><![CDATA[用Flash播放GIF动画]]></title>
			<author>kaman@live.com(Kaman)</author>
			<category><![CDATA[Actionscritp]]></category>
			<pubDate>Sat,19 Sep 2009 00:00:08 +0800</pubDate>
			<guid>http://www.yiduren.com/blog/default.asp?id=56</guid>
		<description><![CDATA[今天看到这个太兴奋了。flash终于可以加载并播放gif动画了。<br/><br/>项目地址：<a href="http://code.google.com/p/as3gif/" target="_blank" rel="external">http://code.google.com/p/as3gif/</a><br/><br/>主要内容：<br/>&nbsp;&nbsp;•GIF解码器（GIFDecoder） <br/>&nbsp;&nbsp;•GIF编码器（GIFEncoder） <br/>&nbsp;&nbsp;•GIF播放器（GIFPlayer）<br/><br/>使用方法：<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>package {<br/>&nbsp;&nbsp;&nbsp;&nbsp;import flash.display.Sprite;<br/>&nbsp;&nbsp;&nbsp;&nbsp;import flash.net.URLRequest;<br/> <br/>&nbsp;&nbsp;&nbsp;&nbsp;import o&#114;g.gif.player.GIFPlayer;<br/> <br/>&nbsp;&nbsp;&nbsp;&nbsp;public class GIFPlayer_Test extends Sprite {<br/> <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public function GIFPlayer_Test() {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var myGIFPlayer:GIFPlayer = new GIFPlayer();<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addChild(myGIFPlayer);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myGIFPlayer.x = 50;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myGIFPlayer.y = 50;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myGIFPlayer.load(new URLRequest(&#34;test.gif&#34;));<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>}<br/></div></div><br/><br/>效果演示：可上传本地gif动画，看看效果。<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/flash.gif" alt="" style="margin:0px 2px -3px 0px" border="0"/>Flash动画</div><div class="UBBContent"><a id="temp44037_href" href="http://www.yiduren.com/blog/javascript:MediaShow('swf','temp44037','http://www2.flash8.net/UploadTeach/200909/2009091717325165.swf','400','400')"><img name="temp44037_img" src="http://www.yiduren.com/blog/images/mm_snd.gif" style="margin:0px 3px -2px 0px" border="0" alt=""/><span id="temp44037_text">在线播放</span></a><div id="temp44037"></div></div></div><br/><br/>资讯来源：<a href="http://www2.flash8.net/teach/7866.htm" target="_blank" rel="external">http://www2.flash8.net/teach/7866.htm</a>]]></description>
		</item>
		
			<item>
			<link>http://www.yiduren.com/blog/article/55.htm</link>
			<title><![CDATA[自定义你的YUI Reset CSS]]></title>
			<author>kaman@live.com(Kaman)</author>
			<category><![CDATA[CSS | HTML]]></category>
			<pubDate>Wed,16 Sep 2009 21:36:28 +0800</pubDate>
			<guid>http://www.yiduren.com/blog/default.asp?id=55</guid>
		<description><![CDATA[<br/>Q:什么是YUI Reset CSS？<br/>A:顾名思义,其是 Yahoo! User Interface Library出品的一个CSS<br/><br/>Q：它的作用是什么？<br/>A：作用很单纯，重置(reset)浏览器的默认样式。例如ul li 在IE 和Firefox下的默认margin值是不同的，使用YUI Reset CSS可以让各个浏览器默认值相同，这样页面各个元素默认显示的效果就相同了。 <br/><br/>Q：如何使用？<br/>A：粘贴代码到你的CSS文件的最上部分。<br/><br/>以上都是简单的使用。下面来说说为什么要自定义。<br/>我们拿&lt;strong&gt;标签来说明，&lt;strong&gt;实际的效果是加粗显示。但是在YUI Reset CSS 中&lt;strong&gt;标签失去了加粗的作用。<br/>从页面显示效果来看，&lt;strong&gt;并没有起到作用，我个人觉得这不是很合理，大多数情况下我们加&lt;strong&gt;就是为了使字体加粗显示，如果你需要其他的效果完全可以在CSS中单独定义。这种情况在站点比较大的情况下尤为重要，所以我觉得还原它们原有的表现比较好。同样的,还有&lt;em&gt;（用来斜体显示）。<br/>通常，我都会把&lt;strong&gt;和&lt;em&gt;从YUI Reset CSS中去除。当然最终还要看个人习惯自定义你的YUI Reset CSS。<br/><br/><br/><br/>附：YUI Reset CSS [ 原汁原味，未经自定义 :-)&nbsp;&nbsp;]<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { <br/>&#160;&#160;&#160;&#160;margin:0;<br/>&#160;&#160;&#160;&#160;padding:0;<br/>}<br/>table {<br/>&#160;&#160;&#160;&#160;border-collapse:collapse;<br/>&#160;&#160;&#160;&#160;border-spacing:0;<br/>}<br/>fieldset,img { <br/>&#160;&#160;&#160;&#160;border:0;<br/>}<br/>address,caption,cite,code,dfn,em,strong,th,var {<br/>&#160;&#160;&#160;&#160;font-style:normal;<br/>&#160;&#160;&#160;&#160;font-weight:normal;<br/>}<br/>ol,ul {<br/>&#160;&#160;&#160;&#160;list-style:none;<br/>}<br/>caption,th {<br/>&#160;&#160;&#160;&#160;text-align:left;<br/>}<br/>h1,h2,h3,h4,h5,h6 {<br/>&#160;&#160;&#160;&#160;font-size:100%;<br/>&#160;&#160;&#160;&#160;font-weight:normal;<br/>}<br/>q:before,q:after {<br/>&#160;&#160;&#160;&#160;content:&#39;&#39;;<br/>}<br/>abbr,acronym { border:0;<br/>}<br/></div></div><br/><br/>YUI Reset CSS 官方链接：<a href="http://developer.yahoo.com/yui/reset/" target="_blank" rel="external">http://developer.yahoo.com/yui/reset/</a>]]></description>
		</item>
		
			<item>
			<link>http://www.yiduren.com/blog/article/54.htm</link>
			<title><![CDATA[一道面试题]]></title>
			<author>kaman@live.com(Kaman)</author>
			<category><![CDATA[CSS | HTML]]></category>
			<pubDate>Fri,11 Sep 2009 14:22:30 +0800</pubDate>
			<guid>http://www.yiduren.com/blog/default.asp?id=54</guid>
		<description><![CDATA[找到Tencent 08年的面试题 ，最后一题是这样的：<br/><br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent"><br/><strong>五、勇气拼一拼，让你超越别人的加分题目来了！ （不限于一种方法，共30分）</strong><br/>使用重构的方式制作出一个如下图的水平、垂直都居中短边为50px，长边为150px的红色十字架。<br/><img src="http://www.yiduren.com/blog/attachments/month_0909/7200991114459.jpg" border="0" alt=""/><br/><br/>要求：<br/>1.使用2个div完成<br/>2.使用3个div完成<br/>3.使用5个div完成<br/><br/></div></div><br/><br/>题目比较简单，当然，解法比较多，最主要考虑优化代码。<br/>尝试一下<br/><br/>------------ 2 DIV --------------<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&lt;style&gt;<br/>.h,.v{ background:#F00; position:absolute;}<br/>.h{ width:50px; height:150px; margin-left:50px;}<br/>.v{ width:150px; height:50px; margin-top:50px;}<br/>&lt;/style&gt;<br/>&lt;div class=&#34;h&#34;&gt;&lt;/div&gt;<br/>&lt;div class=&#34;v&#34;&gt;&lt;/div&gt;<br/><br/></div></div><br/><br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp3316">
<style>
.h,.v{ background:#F00; position:absolute;}
.h{ width:50px; height:150px; margin-left:50px;}
.v{ width:150px; height:50px; margin-top:50px;}
</style>
<div class=&#34;h&#34;></div>
<div class=&#34;v&#34;></div>
</TEXTAREA><br/><INPUT onclick="runEx('temp3316')"  type="button" class="userbutton" value="运行此代码"/> <INPUT onclick="doCopy('temp3316')"  type="button" class="userbutton" value="复制此代码"/> <INPUT onclick="saveCode('temp3316')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>------------ 3 DIV --------------<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>.a,.b,.c{ width:50px; height:50px; background:#F00;}<br/>.b{ width:150px; height:50px;}<br/>.a,.c{ margin-left:50px;}<br/>&lt;/style&gt;<br/><br/>&lt;div class=&#34;a&#34;&gt;&lt;/div&gt;<br/>&lt;div class=&#34;b&#34;&gt;&lt;/div&gt;<br/>&lt;div class=&#34;c&#34;&gt;&lt;/div&gt;<br/></div></div><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp42837">
<style>
.a,.b,.c{ width:50px; height:50px; background:#F00;}
.b{ width:150px; height:50px;}
.a,.c{ margin-left:50px;}
</style>

<div class=&#34;a&#34;></div>
<div class=&#34;b&#34;></div>
<div class=&#34;c&#34;></div>
</TEXTAREA><br/><INPUT onclick="runEx('temp42837')"  type="button" class="userbutton" value="运行此代码"/> <INPUT onclick="doCopy('temp42837')"  type="button" class="userbutton" value="复制此代码"/> <INPUT onclick="saveCode('temp42837')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/><br/>------------ 5 DIV --------------<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent"><br/>&lt;style&gt;<br/>.padder{ width:150px; height:150px; background:#F00; }<br/>.aa,.ab,.ac,.ad{ width:50px; height:50px; background:#FFF; float:left;}<br/>.aa{ margin:0 50px 50px 0;}<br/>.ac{ margin:0 50px 0 0;}<br/>&lt;/style&gt;<br/><br/>&lt;div class=&#34;padder&#34;&gt;<br/>&lt;div class=&#34;aa&#34;&gt;&lt;/div&gt;<br/>&lt;div class=&#34;ab&#34;&gt;&lt;/div&gt;<br/>&lt;div class=&#34;ac&#34;&gt;&lt;/div&gt;<br/>&lt;div class=&#34;ad&#34;&gt;&lt;/div&gt;<br/>&lt;/div&gt;<br/></div></div><br/><br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp24274">
<style>
.padder{ width:150px; height:150px; background:#F00; }
.aa,.ab,.ac,.ad{ width:50px; height:50px; background:#FFF; float:left;}
.aa{ margin:0 50px 50px 0;}
.ac{ margin:0 50px 0 0;}
</style>

<div class=&#34;padder&#34;>
<div class=&#34;aa&#34;></div>
<div class=&#34;ab&#34;></div>
<div class=&#34;ac&#34;></div>
<div class=&#34;ad&#34;></div>
</div>
</TEXTAREA><br/><INPUT onclick="runEx('temp24274')"  type="button" class="userbutton" value="运行此代码"/> <INPUT onclick="doCopy('temp24274')"  type="button" class="userbutton" value="复制此代码"/> <INPUT onclick="saveCode('temp24274')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/><br/>附： 08年腾讯试题<br/><img src="http://www.yiduren.com/blog/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/> <a href="http://www.yiduren.com/blog/attachments/month_0909/d2009911142143.doc" target="_blank">点击下载此文件</a><br/>]]></description>
		</item>
		
			<item>
			<link>http://www.yiduren.com/blog/article/53.htm</link>
			<title><![CDATA[推荐您升级IE浏览器]]></title>
			<author>kaman@live.com(Kaman)</author>
			<category><![CDATA[CSS | HTML]]></category>
			<pubDate>Wed,09 Sep 2009 14:04:55 +0800</pubDate>
			<guid>http://www.yiduren.com/blog/default.asp?id=53</guid>
		<description><![CDATA[<img src="http://www.yiduren.com/blog/attachments/month_0909/v20099915612.png" border="0" alt=""/><br/><br/>IE6早在2001年出现至今已经有8年的历史了，IT业飞速发展，大家众所周知。但微软的XP系统在广大民间根深蒂固，使得IE6长期占领市场。大家喜爱XP，无可非议。其中IE6是一款相对不成熟的作品，存在很多bug，使得与之相关的工程师们要花大量的时间来修复IE6呈现上的bug。一定程度上影响了业界的发展。web 应用程序上一些新的特性也无法再IE6中完美体现。<br/>鉴于此，建议大家升级您的IE6，体验更完美的网络世界。感谢您的支持！<br/><br/>附上下载地址：<br/>IE 8 微软官方: <a href="http://www.microsoft.com/china/windows/internet-explorer/" target="_blank" rel="external">http://www.microsoft.com/china/windows/internet-explorer/</a><br/><br/>开发者支持<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp12752">  
<!--[if lt IE 7]>  
  <div style='border: 1px solid #90c5ed; background: #c4eeff; text-align: center; clear: both; height: 75px; position: relative; '>    				 	<div style='position: absolute; right: 3px; top: 3px; font-family:Tahoma; font-weight: bold;'>
  		<a href='#' onclick='javascript:this.parentNode.parentNode.style.display=&#34;none&#34;; return false;'>
		<img src='<a href="http://www.yiduren.com/ie8/Close.png" target="_blank" rel="external">http://www.yiduren.com/ie8/Close.png</a>' style='border: none;' alt='Close this notice'/>
		</a>
	</div>   
	
	<div style='width: 650px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>      
		<div style='width: 75px; float: left;'>
			<img src='<a href="http://www.yiduren.com/ie8/smile.jpg" target="_blank" rel="external">http://www.yiduren.com/ie8/smile.jpg</a>' alt='Warning!'/>
		</div>      
		
		<div style='width: 275px; float: left; font-family: Arial, sans-serif;'>        
			<div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>
				推荐您升级一下浏览器
			</div>        
				<div style='font-size: 12px; margin-top: 6px; line-height: 16px;'>
				hi,尝试一下最新的浏览器吧。你会喜欢的。

				<a href=&#34;<a href="http://www.yiduren.com/blog/article/53.htm" target="_blank" rel="external">http://www.yiduren.com/blog/article/53.htm</a>&#34; style=&#34; color:#7c97c0&#34;>了解一下&amp;raquo;</a>
				</div>      
			</div>      

			<div style='width: 75px; float: left;'>
				<a href='<a href="http://www.microsoft.com/china/windows/internet-explorer/" target="_blank" rel="external">http://www.microsoft.com/china/windows/internet-explorer/</a>' target='_blank'>
				<img src='<a href="http://www.yiduren.com/ie8/ie8.jpg" target="_blank" rel="external">http://www.yiduren.com/ie8/ie8.jpg</a>' style='border: none;' alt='下载 IE8'/></a>
			</div>      

			<div style='width: 75px;float: left;'><a href='<a href="http://www.google.com/chrome" target="_blank" rel="external">http://www.google.com/chrome</a>' target='_blank'>
					<img src='<a href="http://www.yiduren.com/ie8/chrome.jpg" target="_blank" rel="external">http://www.yiduren.com/ie8/chrome.jpg</a>' style='border: none;' alt='下载 Google Chrome'/></a>
					
			</div> 	
			
			<div style='width: 75px; float: left;'>
				<a href='<a href="http://www.firefox.com" target="_blank" rel="external">http://www.firefox.com</a>' target='_blank'>
				<img src='<a href="http://www.yiduren.com/ie8/firefox.jpg" target="_blank" rel="external">http://www.yiduren.com/ie8/firefox.jpg</a>' style='border: none;' alt='下载 Firefox 3.5'/></a>
			</div>
			
			<div style='width: 75px; float: left;'>
				<a href='<a href="http://www.apple.com/safari/download/" target="_blank" rel="external">http://www.apple.com/safari/download/</a>' target='_blank'>
				<img src='<a href="http://www.yiduren.com/ie8/safari.jpg" target="_blank" rel="external">http://www.yiduren.com/ie8/safari.jpg</a>' style='border: none;' alt='下载 Safari 4'/></a>		 					 			</div>      
			</div>  
		</div>  
<![endif]-->


</TEXTAREA><br/><INPUT onclick="runEx('temp12752')"  type="button" class="userbutton" value="运行此代码"/> <INPUT onclick="doCopy('temp12752')"  type="button" class="userbutton" value="复制此代码"/> <INPUT onclick="saveCode('temp12752')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
			<item>
			<link>http://www.yiduren.com/blog/article/52.htm</link>
			<title><![CDATA[IE8中文超链接下划线]]></title>
			<author>kaman@live.com(Kaman)</author>
			<category><![CDATA[CSS | HTML]]></category>
			<pubDate>Wed,09 Sep 2009 01:28:47 +0800</pubDate>
			<guid>http://www.yiduren.com/blog/default.asp?id=52</guid>
		<description><![CDATA[中文链接在IE各版本下的呈现效果[见下图]<br/><br/><img src="http://www.yiduren.com/blog/attachments/month_0909/f20099911534.gif" border="0" alt=""/><br/><br/>中文链接在IE8中下划线贴紧了文字，这样很不美观。<br/>解决办法：<br/>在&lt;head&gt;标签中添加一个meta即可解决该问题<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><img src="http://www.yiduren.com/blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">&lt;meta http-equiv=&#34;X-UA-Compatible&#34; content=&#34;IE=EmulateIE7&#34; /&gt;</div></div><br/><br/>但是，这样的做法会然IE8中的一些元素样式失效，因为“IE=EmulateIE7”这一句让IE8“变成”了IE7。<br/>如：CSS中给&lt;tbody&gt;标签设置了边框，IE系列中只有IE8能够识别，添加以上代码会让IE8中也同样无效。<br/>如果你有更好的解决办法，敬请告知。]]></description>
		</item>
		
</channel>
</rss>
