<?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; 前端开发</title>
	<atom:link href="http://blog.cike.org/category/front-end-web-develope/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cike.org</link>
	<description>刘益民中文网</description>
	<lastBuildDate>Tue, 28 Jun 2011 00:33:18 +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>常见广告尺寸整理</title>
		<link>http://blog.cike.org/2009/ad-size/</link>
		<comments>http://blog.cike.org/2009/ad-size/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 16:47:51 +0000</pubDate>
		<dc:creator>cike</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Adsense]]></category>
		<category><![CDATA[Alimama]]></category>
		<category><![CDATA[广告尺寸]]></category>

		<guid isPermaLink="false">http://blog.cike.org/?p=453</guid>
		<description><![CDATA[广告与页面能完美结合才是好模板，对点击率和体验都会有不少帮助，整理了我了解的几个广告尺寸 Adsense广告尺寸 728 x 90 728 x 15 468 x 60 468 x 15 336 x 280 300 x 250 250 x 250 234 x 60 200 x 200 200 x 90 180 x 150 180 x 90 160 x &#8230; <a href="http://blog.cike.org/2009/ad-size/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>广告与页面能完美结合才是好模板，对点击率和体验都会有不少帮助，整理了我了解的几个广告尺寸</p>
<h2>Adsense广告尺寸</h2>
<p>728 x 90<br />
728 x 15<br />
468 x 60<br />
468 x 15<br />
336 x 280<br />
300 x 250<br />
250 x 250<br />
234 x 60<br />
200 x 200<br />
200 x 90<br />
180 x 150<br />
180 x 90<br />
160 x 600<br />
160 x 90<br />
125 x 125<br />
120 x 600<br />
120 x 240<br />
120 x 90</p>
<h2>Alimama广告尺寸</h2>
<p>950 x 90<br />
760 x 90<br />
728 x 90<br />
658 x 60<br />
468 x 60<br />
360 x 190<br />
336 x 280<br />
300 x 250<br />
290 x 200<br />
250 x 300<br />
250 x 250<br />
250 x 60<br />
200 x 200<br />
180 x 250<br />
160 x 600<br />
120 x 600<br />
120 x 240<br />
120 x 60</p>
<h2>CHANet联盟广告尺寸</h2>
<p>成果联盟具体某个广告不固定，但大部会集中在以下尺寸</p>
<p>967*60<br />
950*60<br />
760*80<br />
728*90<br />
468*60<br />
300*300<br />
250*250<br />
200*130<br />
160*600<br />
120*600<br />
120*60<br />
100*300</p>
<h2>Vunion广告尺寸</h2>
<p>980 x 450<br />
980 x 90<br />
945 x 80<br />
600 x 90<br />
600 x 480<br />
465 x 60<br />
450 x 380<br />
330 x 240<br />
320 x 250<br />
320 x 185<br />
250 x 60<br />
160 x 500</p>
<p>百度联盟有号未使用，未作参考，从adsense、alimama两大广告尺寸可以看到宽度728、468、336、300、250、200、180、160、120被很好地支持着，结论非常郁闷，使用2列布局里，[900，1000]找不到一个组合的整宽（包括间隔）正好为950、980甚至990</p>
<p><strong>2列组合</strong></p>
<p>728+250+10＝988</p>
<p>728+200+10＝938</p>
<p>728+180+10＝908</p>
<p><strong>3列组合</strong></p>
<p>300+336+336+8+8＝988  2列使用10px间隔，3列使用8px，正好可以组合出几组相同的总宽</p>
<p>250+336+336+8+8＝938</p>
<p>336+300+300+8+8＝952</p>
<p>……</p>
<p>推荐使用988组合，不要跟我提栅格，这里只有广告</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cike.org/2009/ad-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>《Web Form Design: Filling in the Blanks》-Luke Wroblewski</title>
		<link>http://blog.cike.org/2009/web-form-design-filling-in-the-blanks%e3%80%8b-luke-wroblewski/</link>
		<comments>http://blog.cike.org/2009/web-form-design-filling-in-the-blanks%e3%80%8b-luke-wroblewski/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 17:50:09 +0000</pubDate>
		<dc:creator>cike</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Form]]></category>

		<guid isPermaLink="false">http://blog.cike.org/?p=394</guid>
		<description><![CDATA[Forms make or break the most crucial online interactions: checkout (commerce), registration (community), data input (participation and sharing), and any task requiring information entry. <a href="http://blog.cike.org/2009/web-form-design-filling-in-the-blanks%e3%80%8b-luke-wroblewski/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>源于BI群里一篇<a href="http://www.baidu.com/s?wd=%BC%DB%D6%B53%D2%DA%C3%C0%BD%F0%B5%C4%D0%DE%B8%B4">价值3亿美元的按钮</a>译文吸引我了解了这本书，当当上没找到！到了Luke Wroblewski网站才看到</p>
<p>Amazon本书信息：<a href="http://www.amazon.com/gp/product/1933820241/ref=ase_lukewinterfac-20/189-8918156-3138128?ie=UTF8&amp;redirect=true">http://www.amazon.com/gp/product/1933820241/ref=ase_lukewinterfac-20/189-8918156-3138128?ie=UTF8&amp;redirect=true</a></p>
<p>36刀太贵了，等待电子D版或国内发行中文版</p>
<p>发几张书内的插图先饱个眼瘾</p>
<p><img class="alignnone size-full wp-image-395" title="web-form-design-1" src="http://blog.cike.org/wp-content/uploads/2009/03/web-form-design-1.jpg" alt="web-form-design-1" width="500" height="189" /></p>
<p><img class="alignnone size-full wp-image-396" title="web-form-design-2" src="http://blog.cike.org/wp-content/uploads/2009/03/web-form-design-2.jpg" alt="web-form-design-2" width="342" height="227" /></p>
<p><img class="alignnone size-full wp-image-397" title="web-form-design-3" src="http://blog.cike.org/wp-content/uploads/2009/03/web-form-design-3.jpg" alt="web-form-design-3" width="500" height="422" /></p>
<p>很惊艳，又见到了这种热度分布图</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cike.org/2009/web-form-design-filling-in-the-blanks%e3%80%8b-luke-wroblewski/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>快慢间的幽雅-绿软下载按钮</title>
		<link>http://blog.cike.org/2009/xdonws-2008ucd/</link>
		<comments>http://blog.cike.org/2009/xdonws-2008ucd/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 23:14:00 +0000</pubDate>
		<dc:creator>cike</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[UCD]]></category>
		<category><![CDATA[用户体验]]></category>

		<guid isPermaLink="false">http://blog.cike.org/?p=350</guid>
		<description><![CDATA[思考按钮应是吸引眼球还是引导点击！？根据经历，更多的时候设计师设计一个按钮只是因为这个按钮好看，网站主把网站功能广告化是也是常犯的败笔。 <a href="http://blog.cike.org/2009/xdonws-2008ucd/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">绿色软件小巧、环保，大部分还是绿色破解版，一向是我的喜好！推荐一个不错的站</p>
<p style="text-align: left;">绿色软件联盟:<a href="http://www.xdowns.com" target="_blank">www.xdowns.com</a></p>
<p style="text-align: center;"><img class="size-full wp-image-351" title="xdowns-load" src="http://blog.cike.org/wp-content/uploads/2009/01/xdowns-load.gif" alt="http://www.xdowns.com/skin/xdowns/download.gif" width="120" height="36" /></p>
<p style="text-align: center;">http://www.xdowns.com/skin/xdowns/download.gif</p>
<p style="text-align: left;">满城下载垃圾站+在动画被AD滥用的国内互联网，上面这个下载按钮有多少人愿意点击，第一眼看到我会犹豫，再来看一下改版前的下载按锯，相近的大小，区别在整体的动感</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-352" title="xdowns-load2" src="http://blog.cike.org/wp-content/uploads/2009/01/xdowns-load2.gif" alt="xdowns-load2" width="146" height="44" /></p>
<p style="text-align: center;">http://web.archive.org/web/20070102014613/http://www.xdowns.com/skin/xdowns/download.gif</p>
<p style="text-align: left;">两者相比，得承认前者华丽火爆的多，思考按钮应是吸引眼球还是引导点击！？问了几个网友，大部分更会接受前者是广告图片，个人之见，绿软的这个小改动是个败笔，根据经历，更多的时候设计师设计一个按钮只是因为这个按钮好看，网站主把网站功能广告化是也是常犯的败笔。推荐阅读下面这本书</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-353" title="book-jiuzhemejiandan" src="http://blog.cike.org/wp-content/uploads/2009/01/book-jiuzhemejiandan.jpg" alt="book-jiuzhemejiandan" width="241" height="207" /><br />
向怡宁-《<a href="http://http://product.dangdang.com/product.aspx?product_id=20256863" target="_blank">就这么简单</a>》</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cike.org/2009/xdonws-2008ucd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>基于jQuery的wordpress留言本插件</title>
		<link>http://blog.cike.org/2008/wordpress-ajax-guestbook/</link>
		<comments>http://blog.cike.org/2008/wordpress-ajax-guestbook/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 16:20:49 +0000</pubDate>
		<dc:creator>cike</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.cike.org/?p=309</guid>
		<description><![CDATA[从zblog转到wp，入手不到一周，用周未一天制作wordpress Ajax留言本，主要特点 <a href="http://blog.cike.org/2008/wordpress-ajax-guestbook/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>从zblog转到wp，入手不到一周，用周未一天制作wordpress Ajax留言本，主要特点：</p>
<ol>
<li>基于Jquery的Ajax提交</li>
<li>直接读库，提取日志中的评论，支持回复、审核</li>
<li>支持纯留言发布</li>
</ol>
<p>演示：http://blog.cike.org/guestbook/ 【失效】</p>
<p>下截：http://blog.cike.org/demo/wordpress-guestbook.zip【失效】</p>
<p>更新日志：</p>
<ol>
<li><span style="text-decoration: line-through;"><span style="color: #008000;">完善分页部分</span> </span>[update 20090117]<span style="text-decoration: line-through;"><br />
</span></li>
<li><span style="color: #008000;"><span style="text-decoration: line-through;">增加表单判断</span></span></li>
<li>如果有时间，区分评论与留言，评论内容将显示相应的日志名称</li>
<li><span style="color: #008000;"><span style="text-decoration: line-through;">支持avatar头像</span></span>[update 20090317 ]</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.cike.org/2008/wordpress-ajax-guestbook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>从CHINAZ看FAVICON.ICO设计</title>
		<link>http://blog.cike.org/2008/favicon-ico/</link>
		<comments>http://blog.cike.org/2008/favicon-ico/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 16:39:37 +0000</pubDate>
		<dc:creator>cike</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[FAVICON]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[ico]]></category>

		<guid isPermaLink="false">http://temp.cike.org/2008/08/%e4%bb%8echinaz%e7%9c%8bfaviconico%e8%b7%a8%e6%b5%8f%e8%a7%88%e5%99%a8%e8%ae%be%e8%ae%a1/</guid>
		<description><![CDATA[<p>Favorites Icon其可以让浏览器的收藏夹中除显示相应的标题外，还以图标的方式区别不同的网站。可以出现在浏览器标题选项卡、URL前、收藏夹中</p><p>如何像CHINAZ一样做出动画效果且实现跨浏览器兼容呢？是否存在可改进的内容？</p><p>&#160;</p> <a href="http://blog.cike.org/2008/favicon-ico/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3>FAVICON.ICO知识基础</h3>
<p>Favorites Icon其可以让浏览器的收藏夹中除显示相应的标题外，还以图标的方式区别不同的网站。可以出现在浏览器标题选项卡、URL前、收藏夹中，大小为16*16，目前IE6好像不支持自定义Favicon，IE7仅支持ICO格式，FF/Opera支持GIF/PNG/ICO/JPG等格式。</p>
<h3>网站如何应用Favicon图标</h3>
<ol>
<li>方法一：将制作的Favorites Icon命名为Favicon.ico，放置网站根目录即可，浏览器会自动索引</li>
<li>方法二：使用&lt;link rel=”icon” href=”图标路径” type=”MIME类型” /&gt;如 &lt;link rel=”icon” href=”/cike/favicon.ico” type=”image/x-icon” /&gt;</li>
</ol>
<h3>如何使用动画Favicon</h3>
<p>无意中看到CHINAZ的FAV图标在FF中隔8秒左右上滚一次，还以为是眼花了，截图为证</p>
<p><img src="http://blog.cike.org/upload/2008/8/200808171714474851.jpg" alt="" /></p>
<p>IE7中显示正常一定是ICO格式，ICO是不支持动画的，CHINAZ是如何做的呢</p>
<div class="code">&lt;<span class="start-tag">link</span><span class="attribute-name"> rel</span>=<span class="attribute-value">“shortcut icon” </span><span class="attribute-name">href</span>=<span class="attribute-value">“favicon.ico” </span>&gt;<br />
&lt;<span class="start-tag">link</span><span class="attribute-name"> rel</span>=<span class="attribute-value">“icon” </span><span class="attribute-name">href</span>=<span class="attribute-value">“favicon.gif” </span><span class="attribute-name">type</span>=<span class="attribute-value">“image/gif” </span>&gt;</div>
<p>结论出来了在IE中使用第一行代码，遇到第二行因不支持GIF格式所以不影响第一行效果，FF支持GIF格式，覆盖第一行，最终显示favicon.gif</p>
<h3>CHINAZ的用法完美了吗？</h3>
<p>力求精简的我们是不会就此收工的，既然浏览器默认会索引根目录下的 favicon.ico，仅使用代码</p>
<p class="code">&lt;<span class="start-tag">link</span><span class="attribute-name"> rel</span>=<span class="attribute-value">“icon” </span><span class="attribute-name">href</span>=<span class="attribute-value">“favicon.gif” </span><span class="attribute-name">type</span>=<span class="attribute-value">“image/gif” </span>&gt;</p>
<p>可以实现IE显示ICO，FF/Opera显示gif吗？实践中……</p>
<p>以下依次为IE7、Opera、FF3+FireBug</p>
<p><img src="http://blog.cike.org/upload/2008/8/200808171738255154.png" alt="" /></p>
<p>看来CHINAZ还可以为每个页面精简一行代码！演示DEMO <a href="http://blog.cike.org/demo/html/favicon/">http://blog.cike.org/demo/html/favicon/</a></p>
<h3>关于Favicon结论</h3>
<ol>
<li>无动画要求：使用ico格式，并命名为 favicon放置于网站根目录</li>
<li>有动画要求最佳方法：分别制作ICO格式和动画格式两个favicon，将ICO格式favicon文件放置根目录，网站HEAD区使用 &lt;<span class="start-tag">link</span><span class="attribute-name"> rel</span>=<span class="attribute-value">“icon” </span><span class="attribute-name">href</span>=<span class="attribute-value">“favicon.gif” </span><span class="attribute-name">type</span>=<span class="attribute-value">“动画格式图片MIME” </span>&gt;</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.cike.org/2008/favicon-ico/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让TD支持完美支持overflow:hidden的CSS实现</title>
		<link>http://blog.cike.org/2008/td-overflow-hidden/</link>
		<comments>http://blog.cike.org/2008/td-overflow-hidden/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 09:49:51 +0000</pubDate>
		<dc:creator>cike</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[overflow]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://temp.cike.org/2008/08/%e8%ae%a9td%e6%94%af%e6%8c%81%e5%ae%8c%e7%be%8e%e6%94%af%e6%8c%81overflowhidden%e7%9a%84css%e5%ae%9e%e7%8e%b0/</guid>
		<description><![CDATA[<p>直接在TD上使用OVERFLOW：HIDDEN是无效的，在百度之多半的结论是使用DIV插入TD再使用OVERFLOW显然这是不精简的代码，若是大量的TD，工作量还是个问题</p><p>有人提议 为其table定义width:*; table-layout : fixed 但是我在IE7下、Opera、FF3下看都无效，仅实现了对列宽度的控制，换行还是存在无意发现white-space: pre 在IE下实现了</p> <a href="http://blog.cike.org/2008/td-overflow-hidden/">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>直接在TD上使用OVERFLOW：HIDDEN是无效的，百度之，多半的结论是使用DIV插入TD再使用OVERFLOW</p>
<p>显然这不是追求精简的我们所要的，即便不考虑在大量的TD时的工作量</p>
<p>有人提议 为其table定义宽度，并使用 table-layout : fixed ，结合white-space: nowrap 实现了</p>
<p class="code">&lt;style&gt;<br />
table{  border:1px solid blue;border-collapse:collapse; width:304px;table-layout:fixed;}<br />
td{border:1px solid blue; height:25px;overflow:hidden; white-space:nowrap;}<br />
&lt;/style&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;一二三四五六七八九&lt;/td&gt;<br />
&lt;td&gt;一二三四五六七八九&lt;/td&gt;<br />
&lt;td&gt;一二三四五六七八九&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;by:cike.org&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
<!-- table{  border:1px solid blue;border-collapse:collapse; width:304px;table-layout:fixed;}td{ width:100px;border:1px solid blue; height:25px;overflow:hidden; white-space:pre; text-overflow:ellipsis} --></p>
<p>问题又来了，现实中我们用表格列宽常是不等的，如第一列为80px，再看TD又换行了</p>
<div class="code">……<br />
&lt;td style=”width:80px”&gt;一二三四五六七八九&lt;/td&gt;<br />
&lt;td&gt;一二三四五六七八九&lt;/td&gt;<br />
&lt;td&gt;一二三四五六七八九&lt;/td&gt;<br />
……</div>
<p><img src="http://blog.cike.org/upload/2008/8/200808161833034467.jpg" alt="" /></p>
<p>再次埋头实验－失败－实验…… 答案揭晓 white-space:pre，已通过IE6、7、8B1、FF23、Opera9</p>
<div class="code">&lt;style&gt;<br />
table{border:1px solid blue;border-collapse:collapse; width:304px;table-layout:fixed}<br />
td{border:1px solid blue; height:25px;white-space:pre;overflow:hidden}<br />
.w80{ width:80px}<br />
&lt;/style&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
&lt;td class=”w80&#8243;&gt;一二三四五六七八九&lt;/td&gt;<br />
&lt;td&gt;一二三四五六七八九&lt;/td&gt;<br />
&lt;td&gt;一二三四五六七八九&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;by:&lt;a href=”<a href="http://cike.org&quot;&gt;cike.org&lt;/a&gt;&lt;/td">http://cike.org”&gt;cike.org&lt;/a&gt;&lt;/td</a>&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;</div>
<p><strong>总结</strong>：<span style="color: #0000ff;">当td无宽度值时，table{width*;table-layout:fixed;}+td{white-space:nowrap/pre} td将展现为等宽；当TD有指定值时white-space只能为pre，为了省力，推荐在两种情况下都使用white-space:pre</span></p>
<p><strong>疑惑</strong>：为什么指定宽度会使nowrap无效，知道的请分享</p>
<p>最终实例：<a href="http://blog.cike.org/demo/html/td-hidden/">DEMO&gt;&gt;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cike.org/2008/td-overflow-hidden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

