<?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; CSS</title>
	<atom:link href="http://fis.io/tag/css/feed" rel="self" type="application/rss+xml" />
	<link>http://fis.io</link>
	<description>IT 相关的博客，分享关于Google, Firefox, 黑莓, 手机, 软件, WordPress, ...</description>
	<lastBuildDate>Sun, 26 Feb 2012 12:55:07 +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>全新的评论区体验</title>
		<link>http://fis.io/comment-new-experience.html</link>
		<comments>http://fis.io/comment-new-experience.html#comments</comments>
		<pubDate>Sat, 27 Feb 2010 11:44:25 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[创意 设计]]></category>
		<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[设计]]></category>

		<guid isPermaLink="false">http://fis.io/?p=1673</guid>
		<description><![CDATA[最近又折腾上了 WordPress 模板，把很久没有动过的评论输入框做了些修葺，看上去有些不一样了 对以前评论过的人隐藏资料输入部分 这个功能在很多博... ]]></description>
			<content:encoded><![CDATA[<p><img style="float: left; margin: 5px 15px 5px 0;" src="http://fis.io/wp-content/uploads/2008/06/painting.png" alt="" />最近又折腾上了 WordPress 模板，把很久没有动过的评论输入框做了些修葺，看上去有些不一样了 <img src='/b.gif' alt=':eek:' class='wp-smiley sm-eek' /> </p>
<h4>对以前评论过的人隐藏资料输入部分</h4>
<p>这个功能在很多博客都可以看到，让常客不再重复看到资料输入框，需要的时候点击就可以展开修改。另外预先显示评论者自己的全球阿凡达，用回形针别在右上角。下面欢迎来自天鹅海的组合大城小爱里的，<a href="http://ell.im/" target="_blank" title="这正在夭折的" class="external">小爱同学</a> 做群众演员：<span id="more-1673"></span></p>
<p align="center"><img src="http://fis.io/wp-content/uploads/2010/02/comment-form.png" alt="新的评论输入框设计" /></p>
<p>js 隐藏代码参考了 <a href="http://www.neoease.com/wordpress-guest-post/" target="_blank" title="提高 WordPress 访客评论时的用户体验" class="external">享总的文章</a>，另外多了个享总没有提到的细节，展开和收起按钮按下之后会把焦点放到相应的输入框内，也就是多执行一个 .focus(); 以下是“更改”按钮 onclick 时执行的 jQuery 脚本：</p>
<p><code class="js">$('#author_info').slideDown('fast');<br />
<strong>$('#author').focus();</strong><br />
$('#show_author_info').hide();<br />
$('#hide_author_info').show();</code></p>
<p>如果访客 cookies 中有曾经评论过的 email 信息，则预先显示头像。在 comments.php 中合适的地方先判断是否存在 email, 如果有则输出一个头像。</p>
<p><code class="php">&lt;?php if ( $comment_author_email ) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;echo '&lt;a href="..."&gt;' . get_avatar(<br />
&nbsp;&nbsp;&nbsp;&nbsp;$comment_author_email, 40 ) . '&lt;/a&gt;';<br />
} ?&gt;</code></p>
<p>为了看上去生动些，头像被旋转了 10 度，这是用 CSS 实现的，参考我那篇关于 <a href="http://fis.io/css-3-hover-animations.html" title="学习笔记: CSS3 鼠标悬停动画">CSS3 动画的文章</a>。这有一些浏览器的局限性，比如 Chrome Windows 一直有个 bug, 在图像被旋转后，边缘不能反锯齿；Firefox 则一直不能对无 padding 的图像进行圆角，除非图像处在背景中。于是我把 Firefox 下链接的 border 圆角也一并拿掉了。</p>
<h4 style="margin-top: 40px; ">动态的输入框浮动</h4>
<p><a href="http://gluedideas.com/" target="_blank" title="Subtle for WordPress" class="external">GluedIdeas Subtle</a> 主题原来是有输入框浮动的，但使用的是 position: fixed; 现在改成 jQuery 来做，在页面滚动的时候浮动是动态的了，顺便还兼容了 IE. 代码来自 <a href="http://css-tricks.com/scrollfollow-sidebar/" target="_blank" title="Scroll/Follow Sidebar, Multiple Techniques | CSS-Tricks" class="external">CSS-Tricks</a>.</p>
<h4 style="margin-top: 40px; ">可展开的表情按钮栏</h4>
<p align="center" style="margin: 20px 0; "><img src="http://fis.io/wp-content/uploads/2010/02/smilies-toolbar.png" alt="表情按钮栏" /></p>
<p>表情按钮收起来了，放在大输入框内，点击则展开。同样是由 jQuery 来执行的，按钮按下的时候做三件事情：焦点放到大输入框里去；用 jQuery .toggle() 脚本来展开或收起表情按钮；按钮本身切换一个 class, 在笑脸和关闭叉叉之间切换。</p>
<p><code class="js">$('#comment').focus();<br />
$('#smilies_toolbar').toggle('fast');<br />
$('#toggle-smilies').toggleClass('close');</code></p>
<h4 style="margin-top: 40px; ">新的评论回复样式</h4>
<p align="center"><img src="http://fis.io/wp-content/uploads/2010/02/comment-reply.png" alt="回复评论" /></p>
<p>回复别人的评论时出现一个黄色的提示条，类似于博客界出名的 <a href="http://www.kenengba.com/" target="_blank" title="可能吧" class="external">绿条禅</a>，同时有个小箭头指向被回复的评论。</p>
<p>评论回复是基于枫叶的插件 <a href="http://blog.2i2j.com/plugins/wordpress-thread-comment" target="_blank" title="Wordpress Thread Comment / 偶爱偶家" class="external">WordPress Thread Comment</a>, 经过了枫叶和我的一些修改，目前这样已经完全符合我的需要了。喜欢这个插件的朋友不妨去插件页进行捐助，支持开发。</p>
<h4 style="margin-top: 40px; ">评论列表</h4>
<p>左侧评论列表也有一些小的变化，比如回复会比较小一些，编号字体换成了 <span style="font-family: Georgia, serif; font-style: italic; ">Georgia</span>, 以前我没有放上每条评论的链接，现在也放在了编号上，只不过颜色还是灰色的。</p>
<h4 style="margin-top: 40px; ">最后</h4>
<p>如果出现显示问题可能需要刷新一下，避免使用浏览器缓存，最近的改动挺多的。另外如果您发现滚动很卡，可以回复我说一下浏览器和电脑配置 <img src='/b.gif' alt=':P' class='wp-smiley sm-tongue' /> </p>
<h4 class="round5px" style="margin-top: 40px; padding: 5px; background-color: #fea; text-align: center; ">更新</h4>
<p>本文发布 3 小时，评论数达到 98 条，当然主要是几个朋友在疯狂灌水啦，除了我自己之外差不多就是：<a target='_blank' class='external' href='http://ELl.im'>ELL</a> <a target='_blank' class='external' href='https://jimmyxu.com/'>Jimmy Xu</a> <a target='_blank' class='external' href='http://terryxxy.com'>Sunny</a> <a class='external' target='_blank' href='http://lisker.im'>lisker</a>, 大家都在盖楼──往地下室盖。</p>
<p>WordPress Thread Comment 这个插件是限制回复层数的，但仅仅是在超过层数的时候不输出回复按钮，而数据发往服务器并不验证。之前在 @terryxxy （上面的 Sunny）博客上我就在说，改动很简单，只需要 Firebug, 或者 Safari, Chrome 上类似的自带调试工具。找到评论输入框下面用来发送相关数据的两个 &lt;input type="hidden"&gt;:</p>
<p><code>&lt;p&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" id="comment_reply_ID"<br />
&nbsp;&nbsp;&nbsp;&nbsp;name="comment_reply_ID" value="0" /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" id="comment_reply_dp"<br />
&nbsp;&nbsp;&nbsp;&nbsp;name="comment_reply_dp" value="0" /&gt;<br />
&lt;/p&gt;</code></p>
<p>在 value 里填入想要回复的评论 ID 和深度 dp 就可以了。这也是按了回复按钮之后会通过 javascript 修改的两个数值。这样就可以无限回复下去了。你猜最后回复到了地下多少层？B31! 以前我只在回复前标一个 "Re", 今天为了大家盖楼方便，把地下楼层编号 B2 B3 也输出了 <img src='/b.gif' alt=':evil:' class='wp-smiley sm-evil' /> </p>
<p>然后新的问题出现了，每层回复都会在左边缩进，比如 margin-left: 20px; 算算地下 31 层得多少，早就撑破了。锲而不舍的 <a target='_blank' class='external' href='https://jimmyxu.com/'>Jimmy Xu</a> 同学不光一直往下破，而且还在截图 <img src='/b.gif' alt=':o' class='wp-smiley sm-surprised' /> </p>
<p>于是呢，我在插件设置页加入了一点判断，当楼层数 $deep > 14 的时候多输出一个 class="min-width", 然后让它 margin-left: 0; 效果是在地下 14 层之后不再缩进。但 Jimmy 同学 <a href="#comment-10653">觉得不满意</a>，最后我的方案：</p>
<p><code class="php">&lt;?php echo ' style="margin-left: ' . ceil(30/sqrt($deep)) . 'px; "'; ?&gt;</code></p>
<p>进行了 margin-left = 30除以(楼层数开平方)再取整，第一层回复 30px, 第四层 15px, 到第 25 层，margin-left 就只有 6px 了。于是呢，从线性变为弧线，看看最后的效果：</p>
<p align="center"><img src="http://fis.io/wp-content/uploads/2010/02/deep.png" alt="" /></p>
<p>另外下面是 @terryxxy 在 70 条评论的时候的截图，点击查看完整全图 <a href="http://img.ly/z8O" target="_blank" class="external">http://img.ly/z8O</a></p>
<p align="center"><a href="http://img.ly/z8O" target="blank"><img src="http://img.ly/show/medium/z8O" class="piclink" width="320" height="240" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/comment-new-experience.html/feed</wfw:commentRss>
		<slash:comments>219</slash:comments>
		</item>
		<item>
		<title>CSS 文字阴影在网页设计中的应用</title>
		<link>http://fis.io/text-shadow.html</link>
		<comments>http://fis.io/text-shadow.html#comments</comments>
		<pubDate>Sun, 17 Jan 2010 04:37:42 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[创意 设计]]></category>
		<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[WebKit]]></category>
		<category><![CDATA[浏览器]]></category>
		<category><![CDATA[设计]]></category>

		<guid isPermaLink="false">http://fis.io/?p=1426</guid>
		<description><![CDATA[C S S不久以前我有一篇文章介绍了 CSS3 鼠标悬停动画，里面简单提过关于 text-shadow, 本文则是详细写 text-shadow. 很遗憾 IE 仍然无缘，IE8 都不行，在这个 I... ]]></description>
			<content:encoded><![CDATA[<style type="text/css">a.button, a.button:visited, a.button:hover { font-size: 16px; font-weight: bold; color: #fff; background-color: #d80; border-bottom: 1px solid #960; border-right: 1px solid #b70; -moz-border-radius: 5px; -webkit-border-radius: 5px; text-decoration: none; padding: 0.3em 0.8em; text-shadow: 0 1px 0 rgba(0,0,0,0.4); -moz-box-shadow: 0 1px 4px rgba(0,0,0,0.3); -webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.3); -webkit-transition: none; } a.button:hover {border: none; border-top: 1px solid #960; border-left: 1px solid #b70;  background-color: #e90; text-shadow: 0 -1px 0 rgba(0,0,0,0.4); -moz-transform: translate(0,1px); -webkit-transform: translate(0,1px); }</style>
<p><a class="button" href="http://fis.io/text-shadow.html" style="float: left; margin: 5px 15px 5px 5px; font-family: Georgia; padding: 0.3em 0.6em; ">C S S</a>不久以前我有一篇文章介绍了 <a href="http://fis.io/css-3-hover-animations.html" title="学习笔记: CSS3 鼠标悬停动画">CSS3 鼠标悬停动画</a>，里面简单提过关于 text-shadow, 本文则是详细写 text-shadow. 很遗憾 IE 仍然无缘，IE8 都不行，在这个 IE 特别是 IE6 居高不下的国度怎么办，由它去吧。</p>
<h4>兼容性</h4>
<p>据 <a href="https://developer.mozilla.org/En/CSS/Text-shadow" target="_blank" class="external" title="text-shadow - MDC">MDC 的文档</a>，支持 text-shadow 的浏览器有 Firefox 3.5, Chrome 2.0, Opera 9.5, Safari 4.0, 其中 Safari 是老早就可以的，但直到 4.0 才支持多重阴影。另外 Opera mini 也能显示，但比较弱，阴影不能模糊。<span id="more-1426"></span></p>
<h4>阴影文字和发光文字</h4>
<p>一个最简单的阴影文字是如下这样写的，其中 1px 2px 代表阴影相对于文字向右下方向偏移了 1px 2px, 可以为负值；5px 代表阴影的模糊半径，取值越大，阴影越扩散看不见。最后是阴影颜色。这样的阴影适合字号比较大的文字。</p>
<p style="padding: 0.5em 1em; font-family: Monaco, 'Courier New', monospace; font-size: 16px; font-weight: bold; background-color: #eee; text-shadow: 1px 2px 5px #888; ">text-shadow: 1px 2px 5px #888;</p>
<p style="margin-bottom: 50px; padding: 0.5em 1em; font-family: Monaco, 'Courier New', monospace; font-size: 16px; font-weight: bold; color: #000; background-color: #000; text-shadow: 0 0 10px #fd8; ">text-shadow: 0 0 10px #fd8;</p>
<h4>浮雕文字</h4>
<p align="center"><img src="http://fis.io/wp-content/uploads/2010/01/mac-text-shadow.png" alt="Text shadows on a Mac" title="Text shadows on a Mac" /></p>
<p>浮雕文字效果在 Mac OS X 和 iPhone 中随处可见，由于阴影半径很小，一般是 0 或 1px, 所以也适合小号的文本。在使用上一般遵循这个原则：深色文字浅色背景，用白阴影，浅色文字深色背景，用黑阴影。</p>
<p style="padding: 0.2em 1em; font-family: Monaco, 'Courier New', monospace; color: #000; background-color: #aaa; text-shadow: 0 1px 0 #eee; ">text-shadow: 0 1px 0 #eee; 凹进效果</p>
<p style="padding: 0.2em 1em; font-family: Monaco, 'Courier New', monospace; color: #fff; background-color: #789; text-shadow: 0 -1px 0 #123; ">text-shadow: 0 -1px 0 #123; 凹进效果</p>
<p style="padding: 0.2em 1em; font-family: Monaco, 'Courier New', monospace; color: #000; background-color: #aaa; text-shadow: 0 -1px 1px #eee; ">text-shadow: 0 -1px 1px #eee; 凸出效果</p>
<p style="margin-bottom: 50px; padding: 0.2em 1em; font-family: Monaco, 'Courier New', monospace; color: #fff; background-color: #789; text-shadow: 0 1px 1px #123; ">text-shadow: 0 1px 1px #123; 凸出效果 - http://fis.io/</p>
<h4>多重阴影</h4>
<p>在上面所列的新版浏览器中都已经支持多重阴影，可以达到一些特殊的效果，不过注意，如果文字和背景颜色接近，IE 下就杯具了。</p>
<p style="padding: 0.5em 1em; font-family: Monaco, 'Courier New', monospace; font-size: 16px; font-weight: bold; color: #fff; background-color: #eee; text-shadow: 0 -1px 0 #000, 1px 0 0 #000, 0 1px 0 #000, -1px 0 0 #000; ">text-shadow: 0 -1px 0 #000, 1px 0 0 #000, 0 1px 0 #000, -1px 0 0 #000;</p>
<p style="padding: 0.5em 1em; font-family: Monaco, 'Courier New', monospace; font-size: 16px; font-weight: bold; color: #fff; background-color: #bcf; text-shadow: 1px 1px 5px #08c, 1px 1px 0 #68a; ">text-shadow: 1px 1px 5px #08c, 1px 1px 0 #68a;</p>
<p style="padding: 0.5em 1em; font-family: Monaco, 'Courier New', monospace; font-size: 16px; font-weight: bold; color: #014; background-color: #eee; text-shadow: -2px 0 1px #db6, 2px 0 1px #6bd; ">text-shadow: -2px 0 1px #db6, 2px 0 1px #6bd;</p>
<p style="padding: 0.5em 1em; font-family: Monaco, 'Courier New', monospace; font-size: 16px; font-weight: bold; color: #888; background-color: #888; text-shadow: -1px -1px 0 #ccc, -1px -1px 3px #ccc, 1px 1px 0 #444, 1px 1px 3px #444; ">text-shadow: -1px -1px 0 #ccc, -1px -1px 3px #ccc, 1px 1px 0 #444, 1px 1px 3px #444;</p>
<p style="line-height: 200%; margin-bottom: 50px; padding: 1.5em 1em 0.5em; font-family: Monaco, 'Courier New', monospace; font-size: 16px; font-weight: bold; color: #000; background-color: #000; text-shadow: 0 0 4px #ccc, 0 -5px 4px #ff3, 2px -10px 6px #fd3, -2px -15px 11px #f80, 2px -18px 18px #f20; ">text-shadow: 0 0 4px #ccc, 0 -5px 4px #ff3, 2px -10px 6px #fd3, -2px -15px 11px #f80, 2px -18px 18px #f20;</p>
<h4>鼠标悬停切换</h4>
<p>让鼠标悬停的时候改变状态是个不错的主意，有很强的互动的感觉。阅读器中可能看不到效果。另外，在 Firefox, Chrome, Safari 中能看到整个按钮也有阴影，这是另一个应用于块模型的阴影属性，写法和 text-shadow 一样，但需要写两条：-moz-box-shadow 和 -webkit-box-shadow.</p>
<p align="center" style="margin-bottom: 50px; "><a class="button" href="http://fis.io/text-shadow.html">把鼠标放到按钮上切换阴影</a></p>
<h4>半透明阴影颜色</h4>
<p>有时候需要做的阴影不想它模糊半径太大，又不能太黑，于是从黑色改为灰色──问题来了，灰色的阴影在深色背景上很难看。</p>
<p style="padding: 0.5em 1em; font-family: Monaco, 'Courier New', monospace; font-size: 14px; font-weight: bold; color: #000; background: #357 url(http://fis.io/wp-content/uploads/2010/01/bg.png) repeat-y 0 0; text-shadow: 1px 2px 3px #888; ">text-shadow: 1px 2px 3px #888; 杯具了</p>
<p>这时候要用到 rgba 颜色，在红绿蓝之外还有第四个值 alpha 通道，取值在 0~1 之间。下面的阴影是黑色，但是半透明了。半透明阴影的适应性明显更强，在模糊半径很小的时候，也能透出底下的背景色来。</p>
<p style="margin-bottom: 50px; padding: 0.5em 1em; font-family: Monaco, 'Courier New', monospace; font-size: 14px; font-weight: bold; color: #000; background: #357 url(http://fis.io/wp-content/uploads/2010/01/bg.png) repeat-y 0 0; text-shadow: 1px 2px 3px rgba(0,0,0,0.5); ">text-shadow: 1px 2px 3px rgba(0,0,0,0.5);</p>
<h4>动态阴影</h4>
<p>搭配上 <a href="http://fis.io/css-3-hover-animations.html" title="学习笔记: CSS3 鼠标悬停动画">前文</a> 介绍过的 -webkit-transition, 可以让阴影在鼠标经过时有个变化过程，仅 Chrome, Safari 等 WebKit 浏览器有效。</p>
<style type="text/css">a.motion, a.motion:visited { -webkit-transition: all 0.5s ease-in-out; color: #0c0; text-shadow: 0 0 100px #0f0; text-decoration: none; } a.motion:hover {color: #0f0; text-shadow: 0 0 4px #0f0; text-decoration: none; }</style>
<p align="center" style="padding: 1em; font-size: 18px; font-weight: bold; background-color: #000; "><a class="motion" href="http://fis.io/text-shadow.html">把鼠标放到文字上，阴影在 0.5 秒内聚拢</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/text-shadow.html/feed</wfw:commentRss>
		<slash:comments>72</slash:comments>
		</item>
		<item>
		<title>学习笔记: CSS3 鼠标悬停动画</title>
		<link>http://fis.io/css-3-hover-animations.html</link>
		<comments>http://fis.io/css-3-hover-animations.html#comments</comments>
		<pubDate>Sat, 30 May 2009 01:25:48 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[创意 设计]]></category>
		<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[WebKit]]></category>
		<category><![CDATA[浏览器]]></category>
		<category><![CDATA[设计]]></category>

		<guid isPermaLink="false">http://fis.io/?p=1038</guid>
		<description><![CDATA[受 pbtweet 里面那个漂亮的贴图徽章启发，我搜索了一些相关资料，将如何用 CSS 实现鼠标悬停动画效果的方法整理成本文。目前，能正确显示这些非正... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://fis.io/css-3-hover-animations.html" title="原文载于 fis.io"><img src="http://fis.io/wp-content/uploads/2009/05/css.png" style="float: left; margin: 5px 15px 0 0" border="0" /></a>受 <a href="http://fis.io/pbtweet-enhance-twitter-web.html" title="pbtweet: 增强 Twitter web 体验">pbtweet</a> 里面那个漂亮的贴图徽章启发，我搜索了一些相关资料，将如何用 CSS 实现鼠标悬停动画效果的方法整理成本文。目前，能正确显示这些非正式 CSS 属性的浏览器还非常有限，不过可以确信的是，不能显示动画的浏览器不会受到不良影响，那么就让优秀的浏览器物尽其用吧。查看示例请用 Chrome, Safari 访问 <a href="http://fis.io/css-3-hover-animations.html" title="学习笔记：CSS3 鼠标悬停动画 | 老肥博客 » 非唠不可">本文</a>，其它浏览器可能不能正常显示。<span id="more-1038"></span></p>
<p>上图是一个鼠标悬停动画的例子，如果将以下代码应用到全局 CSS 中，则所有带链接的图片都会有如上图动画：</p>
<p><code class="css">a img {<br />
&nbsp;&nbsp;&nbsp;&nbsp;opacity: 0.8;<br />
&nbsp;&nbsp;&nbsp;&nbsp;-webkit-transition: all 0.2s ease-out;<br />
}<br />
&nbsp;<br />
a:hover img {<br />
&nbsp;&nbsp;&nbsp;&nbsp;opacity: 1;<br />
&nbsp;&nbsp;&nbsp;&nbsp;-moz-transform: scale(1.05) rotate(2deg);<br />
&nbsp;&nbsp;&nbsp;&nbsp;-webkit-transform: scale(1.05) rotate(2deg);<br />
}</code></p>
<p>如果要求仅应用于 class="logo" 的图片，则将选择器改为：</p>
<p><code class="css">a img.logo {...}<br />
a:hover img.logo {...}</code></p>
<p>如果要求应用于 id="footer" 的 div 下所有图片，则将选择器改为：</p>
<p><code class="css">#footer a img {...}<br />
#footer a:hover img {...}</code></p>
<p style="margin-bottom: 50px">到这里，所有的工作都完成了，挺简单吧？下面进入详细分析说明。</p>
<style type="text/css" media="screen">
a img.sample1 {
	opacity: 1;
	-webkit-transition: none;
}
a:hover img.sample1 {
	-moz-transform: rotate(-30deg);
	-webkit-transform: rotate(-30deg);
}
a img.sample2, a img.sample3 {
	opacity: 1;
}
a:hover img.sample2, a:hover img.sample3 {
	-moz-transform: scale(1.5);
	-webkit-transform: scale(1.5);
	-moz-transform-origin: 100% 100%;
	-webkit-transform-origin: 100% 100%;
}
a:hover img.sample3 {
	-moz-transform-origin: 0% 100%;
	-webkit-transform-origin: 0% 100%;
}
#stable .showbox {
	margin: 1em;
	width: 100px;
	height: 40px;
	border: 2px solid;
	border-color: green;
	background-color: #cfc;
	line-height: 40px;
	text-align: center;
	-webkit-transition-duration: 2s;
}
#stable:hover .showbox {
	border-color: #006;
	background-color: #ccf;
	-webkit-border-radius: 1.5em;
	-webkit-transform: translate(300px,0) rotate(5deg) skew(-15deg,0);
}
a img.sample4 {
	opacity: 1;
	-webkit-transition: all 1s cubic-bezier(0,1,1,0);
}
a:hover img.sample4 {
	opacity: 0;
	-moz-transform: translate(-128px,-50px) scale(3) rotate(360deg);
	-webkit-transform: translate(-128px,-50px) scale(3) rotate(360deg);
}
</style>
<h4>transform: 形变目标值设定</h4>
<p><a href="http://fis.io/css-3-hover-animations.html" title="原文载于 fis.io"><img src="http://fis.io/wp-content/uploads/2009/05/css.png" style="float: right;" class="sample1" border="0" /></a>兼容浏览器: Firefox 3.5, Chrome 2.0, Safari 3.1</p>
<p><code class="css">-moz-transform: rotate(-30deg);<br />
-webkit-transform: rotate(-30deg);</code></p>
<p><br class="clear" /><br />
上面的例子仅仅应用了 transform: rotate, 在鼠标悬停的时候逆时针旋转。除了 rotate, 还有 scale, translate, skew, matrix 等用法，想要深入把玩可参考 <a href="http://www.the-art-of-web.com/css/css-animation/" class="external" target="_blank" title="The Art of Web ~ CSS/ Animation Using CSS Transforms">Animation Using CSS Transforms</a>.</p>
<h4>transform-origin: 形变中心点设定</h4>
<p>兼容浏览器: Firefox 3.5, Chrome 2.0, Safari 3.1</p>
<p><code class="css">-moz-transform-origin: 50% 50%;<br />
-webkit-transform-origin: 50% 50%;</code></p>
<p>默认值在对象的正中，X Y 值均为 50%. 更改数值可移动形变中心。下面两个例子，左边是 100% 100%(右下角), 右边是 0%, 100%(左下角):</p>
<p align="center"><a href="http://fis.io/css-3-hover-animations.html" title="原文载于 fis.io"><img src="http://fis.io/wp-content/uploads/2009/05/css.png" class="sample2" border="0" /></a> <a href="http://fis.io/css-3-hover-animations.html" title="原文载于 fis.io"><img src="http://fis.io/wp-content/uploads/2009/05/css.png" class="sample3" border="0" /></a></p>
<h4>transition: 过程动画设定</h4>
<p>兼容浏览器: Chrome 2.0, Safari 3.1</p>
<p><code class="css">-webkit-transition: all 0.2s ease-out;</code></p>
<p>-webkit-transition 是一个神奇的属性，它定义了动画过程的类型、时间、时间轴曲线。all 表示对所有变化应用动画，包括 transform, opacity; 后面两项是时间和时间轴曲线，可以有如下赋值：</p>
<div id="stable">
<div class="showbox">default &raquo;</div>
<div class="showbox" style="-webkit-transition-timing-function: linear;">linear &raquo;</div>
<div class="showbox" style="-webkit-transition-timing-function: ease-in;">ease-in &raquo;</div>
<div class="showbox" style="-webkit-transition-timing-function: ease-out;">ease-out &raquo;</div>
<div class="showbox" style="-webkit-transition-timing-function: ease-in-out;">ease-in-out &raquo;</div>
<div class="showbox" style="-webkit-transition-timing-function: cubic-bezier(0,1,1,0);">cubic-bezier &raquo;</div>
</div>
<p>以上 demo 来自 <a href="http://www.the-art-of-web.com/css/timing-function/" class="external" target="_blank" title="The Art of Web ~ CSS/ Transition Timing Functions">Transition Timing Functions</a>, 展示了 transition 时间控制的强大，而且上面的 transform 是可以多重叠加的，配合 transition, 能做些什么大家想象一下吧！</p>
<h4>opacity: 不透明度</h4>
<p><a href="http://fis.io/css-3-hover-animations.html" title="原文载于 fis.io"><img src="http://fis.io/wp-content/uploads/2009/05/css.png" style="float: right; margin-left: 10px" class="sample4" border="0" /></a>兼容浏览器: 除了 IE</p>
<p>这是一个较为广泛支持的属性，前面早已没有了私有前缀(-moz, -webkit). 使用也很简单，让正常状态的图片稍微透明显示，鼠标悬停的时候恢复不透明，更加醒目。它同样可以在时间轴上受 transition 控制，试试看这个示例。</p>
<h4>text-shadow: 文字阴影</h4>
<p>兼容浏览器: Firefox 3.5, Chrome 2.0, Opera 9.5, Safari 3.1</p>
<p><code class="css">text-shadow: 0px 1px 3px black;</code></p>
<p>以上赋值分别代表 X轴偏移，Y轴偏移，阴影扩散尺寸，颜色。应用到按钮、标题等处有很好的浮雕效果，同样的风格在 Mac OS X, iPhone 系统界面中有大量应用。</p>
<h3>结语</h3>
<ul>
<li>限于篇幅，本文示例所用的 CSS 不明文列出，有兴趣可以查看页面源代码，就嵌在正文中。</li>
<li>目前 CSS3 还在草案阶段，很多属性还有私有属性前缀，能兼容新属性的浏览器在用户比例上也还是少数。话说回来，谁指望 IE Trident? 屁股都要笑掉。</li>
<li>Gecko 真的已经落后 WebKit 好多了，CSS, JS, 而且还没算上 WebKit 在 <a href="http://fis.io/tag/iphone" title="标签: iPhone">iPhone</a>, <a href="http://fis.io/tag/android" title="标签: Android">Android</a> 等移动平台的成就。Gecko 在这方面基本还是零吧。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/css-3-hover-animations.html/feed</wfw:commentRss>
		<slash:comments>97</slash:comments>
		</item>
		<item>
		<title>让 Firefox 的网页输入框也高亮发光</title>
		<link>http://fis.io/firefox-input-area-highlighting.html</link>
		<comments>http://fis.io/firefox-input-area-highlighting.html#comments</comments>
		<pubDate>Tue, 13 Jan 2009 15:53:50 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[电脑 软件]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[扩展]]></category>

		<guid isPermaLink="false">http://fis.io/?p=914</guid>
		<description><![CDATA[让 Firefox 像 Chrome, Safari 一样当前输入框发光，效果如图。最近 折腾 CSS 的时候想到，这应该很容易通过 CSS 实现，搜了一下发现已经有现成的可以用，... ]]></description>
			<content:encoded><![CDATA[<p><img src="http://fis.io/wp-content/uploads/2009/01/input-highlighting.png" style="float: right; margin-left: 10px" />让 <a href="http://fis.io/tag/firefox" title="标签: Firefox">Firefox</a> 像 Chrome, Safari 一样当前输入框发光，效果如图。最近 <a href="http://fis.io/blog-ui-improvement.html" title="本站最近的一些界面改进">折腾 CSS</a> 的时候想到，这应该很容易通过 CSS 实现，搜了一下发现已经有现成的可以用，以下三种方法都可以轻松实现。后面还会讲到如何加到博客 CSS 中，而不依赖于用户的浏览器。</p>
<h4><a href="http://userstyles.org/styles/305" target="_blank" class="external" title="Bright Focus (for buttons, links, and textboxes) | userstyles.org">Bright Focus</a></h4>
<p>用 <a href="https://addons.mozilla.org/zh-CN/firefox/addon/2108" target="_blank" class="external" title="Stylish :: Firefox 附加组件">Stylish</a> 或者 <a href="https://addons.mozilla.org/zh-CN/firefox/addon/748" target="_blank" class="external" title="Greasemonkey :: Firefox 附加组件">Greasemonkey</a> 加载它，高亮颜色可以自己修改。它不光让输入框、按钮在激活的时候发光，连点击链接的 a:active 也发光了，当然，并没有改动 a:hover. 不过我个人并不太喜欢链接发光。不需要那么多行，只要两行就可以了，其实。<span id="more-914"></span></p>
<h4><a href="http://userscripts.org/scripts/show/39888" target="_blank" class="external" title="Outline Inputs Like Safari for Greasemonkey">Outline Inputs Like Safari</a></h4>
<p>这是一个极简单的脚本，只影响输入框和按钮，不过颜色和样式有点丑，需要修改。</p>
<h4><a href="http://fis.io/firefox-input-area-highlighting.html" title="本文：让 Firefox 的网页输入框也高亮发光">自行添加到 userContent.css</a></h4>
<p>这是我采用的办法，不需要扩展，修改 Firefox profile 下面的 userContent.css 实现，添加如下样式：</p>
<p><code class="css">input:focus, select:focus, textarea:focus {<br />
&nbsp;&nbsp;&nbsp;&nbsp;-moz-outline: 2px solid #ebc476;<br />
&nbsp;&nbsp;&nbsp;&nbsp;-moz-outline-radius: 3px;<br />
}</code></p>
<p>和上一个脚本相比，主要添加了一个 CSS 圆角。-moz-outline-radius 即是轮廓的圆角，-moz-border-radius 则是 <a href="http://fis.io/blog-ui-improvement.html" title="本站最近的一些界面改进">上篇文章</a> 说过的边框圆角。</p>
<h4>让网站支持输入框高亮</h4>
<p>以上修改是在用户本地进行的，要把它搬到您的网站或者博客中，只需要将上面的样式添加到 CSS 表中就可以了。由于我的输入框已经有了一个边框圆角，那么需要再增大一下轮廓圆角的半径，并加上 !important 让它优先：</p>
<p><code class="css">input:focus, select:focus, textarea:focus {<br />
&nbsp;&nbsp;&nbsp;&nbsp;-moz-outline: 2px solid #ebc476;<br />
&nbsp;&nbsp;&nbsp;&nbsp;-moz-outline-radius: 5px !important;<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/firefox-input-area-highlighting.html/feed</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
		<item>
		<title>本站最近的一些界面改进</title>
		<link>http://fis.io/blog-ui-improvement.html</link>
		<comments>http://fis.io/blog-ui-improvement.html#comments</comments>
		<pubDate>Sun, 11 Jan 2009 08:20:39 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[创意 设计]]></category>
		<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[图标]]></category>
		<category><![CDATA[美化]]></category>
		<category><![CDATA[设计]]></category>

		<guid isPermaLink="false">http://fis.io/?p=908</guid>
		<description><![CDATA[分类图标 整理文章分类，基于 Silk Icons 为每个分类加上图标： 并且在 Denis 的帮助下实现了侧栏“最新文章”“随机文章”前显示文章所属分类图标。... ]]></description>
			<content:encoded><![CDATA[<h4><img src="http://fis.io/wp-content/uploads/2009/01/painter.png" style="float: right; margin-left: 5px" border="0" />分类图标</h4>
<p>整理文章分类，基于 <a href="http://www.famfamfam.com/lab/icons/silk/" target="_blank" class="external" title="famfamfam.com: Silk Icons">Silk Icons</a> 为每个分类加上图标：<br />
<a href="http://fis.io/category/web" title="网络 应用"><img border="0" src="http://fis.io/wp-includes/images/blank.gif" style="margin: 5px; width: 16px; height: 16px; background: url(http://fis.io/wp-content/themes/gluedideas_subtle/images/icons.png) no-repeat 0 -32px" alt="网络 应用" class="piclink" /></a><a href="http://fis.io/category/site" title="博客 本站"><img border="0" src="http://fis.io/wp-includes/images/blank.gif" style="margin: 5px; width: 16px; height: 16px; background: url(http://fis.io/wp-content/themes/gluedideas_subtle/images/icons.png) no-repeat 0 -182px" alt="博客 本站" class="piclink" /></a><a href="http://fis.io/category/fun" title="娱乐 影音"><img border="0" src="http://fis.io/wp-includes/images/blank.gif" style="margin: 5px; width: 16px; height: 16px; background: url(http://fis.io/wp-content/themes/gluedideas_subtle/images/icons.png) no-repeat 0 -62px" alt="娱乐 影音" class="piclink" /></a><a href="http://fis.io/category/pc" title="电脑 软件"><img border="0" src="http://fis.io/wp-includes/images/blank.gif" style="margin: 5px; width: 16px; height: 16px; background: url(http://fis.io/wp-content/themes/gluedideas_subtle/images/icons.png) no-repeat 0 -152px" alt="电脑 软件" class="piclink" /></a><a href="http://fis.io/category/phone" title="手机 移动"><img border="0" src="http://fis.io/wp-includes/images/blank.gif" style="margin: 5px; width: 16px; height: 16px; background: url(http://fis.io/wp-content/themes/gluedideas_subtle/images/icons.png) no-repeat 0 -122px" alt="手机 移动" class="piclink" /></a><a href="http://fis.io/category/billiards" title="台球 撞球"><img border="0" src="http://fis.io/wp-includes/images/blank.gif" style="margin: 5px; width: 16px; height: 16px; background: url(http://fis.io/wp-content/themes/gluedideas_subtle/images/footer.png) -840px -125px" alt="台球 撞球" class="piclink" /></a><a href="http://fis.io/category/design" title="设计 创意"><img border="0" src="http://fis.io/wp-includes/images/blank.gif" style="margin: 5px; width: 16px; height: 16px; background: url(http://fis.io/wp-content/themes/gluedideas_subtle/images/icons.png) no-repeat 0 -92px" alt="设计 创意" class="piclink" /></a><br />
并且在 <a href="http://fairyfish.net/" target="_blank" class="external" title="我爱水煮鱼">Denis</a> 的帮助下实现了侧栏“最新文章”“随机文章”前显示文章所属分类图标。加上之前的 <a href="http://fis.io/easier-google-favicon-query.html" title="更简单的 Google favicon 查询">评论者 favicon</a>, 已经有点小华丽喽 <img src='/b.gif' alt=':lol:' class='wp-smiley sm-happy' /> </p>
<h4>翻页按钮的样式</h4>
<p>赶潮流学习了下 CSS 圆角，于是将 Pagebar 翻页按钮样式化成这个样子：<span id="more-908"></span><br />
<a href="http://fis.io/blog-ui-improvement.html"><img src="http://fis.io/wp-content/uploads/2009/01/pagebar.png" title="CSS 圆角" alt="CSS 圆角" border="0" class="piclink" style="margin: 5px" /></a><br />
圆角样式仅支持 <a href="http://fis.io/tag/firefox" title="标签: Firefox">Firefox</a>, <a href="http://fis.io/tag/chrome" title="标签: Chrome">Chrome</a>, <a href="http://fis.io/tag/safari" title="标签: Safari">Safari</a>, 其它浏览器下仍是方角。有兴趣可以查看我的 <a href="http://fis.io/wp-content/themes/gluedideas_subtle/style.css" class="download" title="Pagebar CSS style">style.css</a> <img src='/b.gif' alt=':)' class='wp-smiley sm-smile' />  另外 CSS 圆角也运用到了评论输入框、<a href="http://fis.io/better-post-styles.html" title="老肥谈如何在博客正文中运用样式">鼠标放到图片链接上的样式</a> 等地方，就不细说了，推荐阅读 <a href="http://www.happinesz.cn/archives/914/" target="_blank" class="external" title="5个使你熟知CSS 3.0的技术 - 幸福收藏夹">sofish 的教程</a>。</p>
<h4>左上角的加载标签</h4>
<p>在页面加载的时候显示一个友好的提示，尽量挽留一下急性子的访问者吧。实现方法请参阅 <a href="http://www.awflasher.com/blog/archives/1589" target="_blank" class="external" title="给页面加上Loading效果最简单实用的办法 | aw&#8217;s blog - 分享互联网，分享人生">aw</a> 和 <a href="http://ishawn.net/tips/loading-status-bar.html" target="_blank" class="external" title="jQuery 页面载入进度条 | Shawn Blog">Shawn</a> 的文章。</p>
<h4>标签云链接的鼠标悬停颜色</h4>
<p><a href="http://wordpress.org/extend/plugins/simple-tags/" target="_blank" class="external" title="WordPress › Simple Tags « WordPress Plugins">Simple Tags</a> 生成的标签云可以按文章多少自动分配链接的颜色，但是鼠标放到链接上就不再改变颜色了。试试看本文右边的“热门标签”，像普通链接一样有 hover 样式，代码如下：</p>
<p><code class="css">.st-tag-cloud a:hover {<br />
	color: #E58802 !important;<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/blog-ui-improvement.html/feed</wfw:commentRss>
		<slash:comments>71</slash:comments>
		</item>
		<item>
		<title>老肥谈如何在博客正文中运用样式</title>
		<link>http://fis.io/better-post-styles.html</link>
		<comments>http://fis.io/better-post-styles.html#comments</comments>
		<pubDate>Tue, 02 Dec 2008 14:51:55 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[美化]]></category>

		<guid isPermaLink="false">http://fis.io/?p=725</guid>
		<description><![CDATA[一篇吸引眼球的文章一定要有漂亮的样式，除非它是 keso 或者韩寒写的。如果没有他们那样强大的品牌保证，那么一定要把内容和外观都做好，不然读... ]]></description>
			<content:encoded><![CDATA[<p><img src="http://fis.io/wp-content/uploads/2008/12/appearance.png" style="float: left; margin-right: 5px" title="appearance" alt="appearance" border="0" />一篇吸引眼球的文章一定要有漂亮的样式，除非它是 keso 或者韩寒写的。如果没有他们那样强大的品牌保证，那么一定要把内容和外观都做好，不然读者很难坚持阅读完大篇幅密密麻麻的文字，至少我阅读时是这样的。我以前也谈过博文 <a href="http://fis.io/better-links-usage.html" title="老肥谈如何运用好链接">链接</a> 和 <a href="http://fis.io/build-efficiency-tags-system-for-blog.html" title="如何为 blog 建立一个高效的标签系统">标签</a> 的运用，希望它们能对您有所帮助。</p>
<h4>题图和插图</h4>
<p>图片的重要性是显见的，题图则可以一开始就吸引读者浓厚的兴趣。<a href="http://ooxx.me/" target="_blank" class="external" title="OOXX.ME PLZ - 大猫の意淫网志">大猫</a> 的题图一向很大很咸湿，我习惯用 128x128 的兔子图标。<span id="more-725"></span>用 logo 做题图也不错，比如 cnBeta 的文章会自动套用话题 logo, 详细到有关鲍尔默的文章都有一个他的猴子头像。也许这样一个图片没有太多实际意义，但心理上的效果明显。不然门户网站的编辑为什么总要凑两张图片然后标题里称“组图”呢，就是要你点。</p>
<p>题图适合用浮动一侧的样式，按 ctrl+u 查看本文代码，就会发现我把题图所在的 &lt;img&gt; 标签放在了最前面，并加上了 style="float: left; margin-right: 5px" 让它浮动在左边。这个样式不适合用全局 CSS 来做，因为每个题图需要的边距都不同，而且自己定义的 CSS 样式不会传递到阅读器中。</p>
<p><a href="http://fis.io/better-post-styles.html"><img src="http://fis.io/wp-content/uploads/2008/12/link-sample.png" style="float: right; margin: 5px" class="piclink" title="测试样式" /></a>插图不宜太大，如需大图，用缩略图做个链接。最近我给图片上的链接加了个样式，让读者更容易察觉链接，如右所示。（自定义 CSS 只在原文生效，阅读器里没有）如果觉得不错，可以在 <a href="http://fis.io/wp-content/themes/gluedideas_subtle/style.css" title="CSS styles">代码</a> 中搜索 piclink 查看。</p>
<h4>如何强调和高亮</h4>
<p>通常我们用 <strong>粗体</strong> 或者 <span style="background-color: yellow">高亮</span> 来强调重点，但不可多用，不然就没有重点了。将文字弄成红色不是很好的办法，我的英文老师曾告诉我们 ALL CAPS is shouting, 所以我觉得红色的文字也显得不够礼貌。</p>
<h4>html 格式标注的使用</h4>
<p>行文中常用的 html 格式标注包括 h3, h4, ul, ol, li, blockquote 等，一般来说正文中的子标题不应该太大号，h3, h4 就可以了。ul 叫做无序列表，ol 叫做有序列表，li 用来标注列表中每一条项目，blockquote 是区块引用。写列表时，手动写入 1...2... 是很不规范也没有效率的做法，应该使用 html 标注，多用用编辑器的预览模式和代码模式，很容易学会：</p>
<div style="float: left; width: 180px; background-color: #F3F3EC; padding-left: 15px">
<ol>
<li>这是一个有序列表</li>
<li>这是第二条</li>
</ol>
</div>
<div style="float: left; width: 180px; background-color: #F3F3EC; margin-left: 20px; padding-left: 15px">
<ul>
<li>这是一个无序列表</li>
<li>这是第二条</li>
</ul>
</div>
<p><br style="clear: both"></p>
<blockquote style="background-color: #F3F3EC"><p>这是一个区块引用，可看作一个有缩进的段落。引号图片是在 CSS 中定义的，在阅读器中不会有。</p></blockquote>
<p><br style="clear: both"></p>
<p>上面的例子中我将 ul 每条项目前做成了绿色圆点图标，这是在本站 CSS 中定义的，到阅读器中不会有这样的效果，但 ul, li 作为标准 html 标注，一般会被显示成黑色圆点的样子，标题字号、行距什么的都不会错，只是会换成缺省样式，或者阅读器里定义的样式。</p>
<p>合适的子标题、列表可以让文章层次分明，井井有条。如果对它们应用样式，推荐在全局 CSS 中进行，不宜过多地将格式写到 style="" 中，麻烦不说，到阅读器中就会花花绿绿的了。一个典型的错误就是指定整段文字的颜色，要是博客是深色底浅色字，到阅读器里就成浅色底浅色字了。使用 CSS 可以让样式具有更大的适应性。</p>
<h4>写完了</h4>
<p>OK, 如果您读到这里，就说明我这篇文章还不算失败 <img src='/b.gif' alt=':evil:' class='wp-smiley sm-evil' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/better-post-styles.html/feed</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>Google 日历，Gmail 皮肤: Redesigned</title>
		<link>http://fis.io/google-calendar-gmail-redesigned.html</link>
		<comments>http://fis.io/google-calendar-gmail-redesigned.html#comments</comments>
		<pubDate>Tue, 08 Jul 2008 00:47:23 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网络 服务]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[日历]]></category>
		<category><![CDATA[美化]]></category>

		<guid isPermaLink="false">http://fis.io/?p=509</guid>
		<description><![CDATA[Globex Designs 月初发布了 Redesigned 系列第二个作品 Google Calendar Redesigned, 风格和前作 Gmail Redesigned 保持一致，精美依旧。应该是只有 Firefox 用户能用，Opera... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.globexdesigns.com/forums/index.php?showtopic=86" target="_blank" class="external" title="Google Calendar Redesigned Released For Public Beta">Globex Designs</a> 月初发布了 Redesigned 系列第二个作品 Google Calendar Redesigned, 风格和前作 Gmail Redesigned 保持一致，精美依旧。应该是只有 Firefox 用户能用，Opera 不确定。老肥截了这两个皮肤的一些图：</p>
<p><embed type="application/x-shockwave-flash" src="https://picasaweb.google.com/s/c/bin/slideshow.swf" width="440" height="260" flashvars="host=picasaweb.google.com&#038;captions=1&#038;RGB=0xF3F3EC&#038;feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2Fsun.fisio%2Falbumid%2F5220316495895548561%3Fkind%3Dphoto%26alt%3Drss" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed><br />
<span id="more-509"></span></p>
<h4>使用方法</h4>
<p>下载 <a class="download" href="http://www.globexdesigns.com/gmail/gmail.css" title="gmail.css">Gmail 皮肤</a> 和 <a class="download" href="http://www.naverniouk.com/design/gcal/gcal.css" title="gcal.css">Google 日历皮肤</a>，把这两个 CSS 文件放到 Firefox 配置文件夹下的 <a title="典型路径为 %appdata%\Mozilla\Firefox\Profiles\****\chrome">chrome 文件夹</a>，编辑这个文件夹下的 userContent.css (没有则新建一个), 添加两行：</p>
<p><code class="css">@import url(gmail.css);<br />
@import url(gcal.css);</code></p>
<p>重启 Firefox 就可以了。或者用 <a href="https://addons.mozilla.org/zh-CN/firefox/addon/2108" target="_blank" class="external" title="Firefox 样式管理器">Stylish</a> 直接加载上面的 CSS.</p>
<h4>常见问题</h4>
<p>这两个皮肤定义的字号都小于宋体的标准字号 12px, 中文显示效果不是很好。解决办法是将 <em>Firefox 选项 &rsaquo; 内容 &rsaquo; 字体&#038;颜色 &rsaquo; 高级 &rsaquo; 最小字体大小</em> 定义为 12, 这会影响所有网页。或者，老肥推荐使用 <a href="http://fis.io/compare-of-text-rendering.html" title="三种常见文字渲染方式比较">gdi++ 渲染的强抗锯齿字体</a>，真的比宋体好看不是一点点。</p>
<h4>我们期待</h4>
<p>下图来自作者网站，他们的下一个发布将是 Google Reader Redesigned!</p>
<p><img src="http://fis.io/wp-content/uploads/2008/07/redesigned.png" title="Google 日历皮肤: Google Calendar Redesigned" style="margin-bottom: 20px"></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/google-calendar-gmail-redesigned.html/feed</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>RSS feed 不输出全文？一样搞定你</title>
		<link>http://fis.io/google-reader-full-feed-changer.html</link>
		<comments>http://fis.io/google-reader-full-feed-changer.html#comments</comments>
		<pubDate>Fri, 13 Jun 2008 19:14:09 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网络 服务]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Greasemonkey]]></category>
		<category><![CDATA[扩展]]></category>
		<category><![CDATA[阅读器]]></category>

		<guid isPermaLink="false">http://fis.io/?p=497</guid>
		<description><![CDATA[流量就是金钱，所以有些网站很吝啬，RSS feed 只给你看几行字，要看全文？对不起，流量送俾我先。本文教你如何在 Google Reader 里面搞定这些铁公鸡，... ]]></description>
			<content:encoded><![CDATA[<p>流量就是金钱，所以有些网站很吝啬，RSS feed 只给你看几行字，要看全文？对不起，流量送俾我先。本文教你如何在 <a class="external" title="Google 的 RSS 阅读器" href="https://www.google.com/reader/view/" target="_blank">Google Reader</a> 里面搞定这些铁公鸡，不是用 iframe 预览页面，而是只有正文，全文，图文。</p>
<blockquote style="border: none"><p><strong>更新</strong>：感谢 <a class="external" target="_blank" href="http://blog.recih.cn/articles/xianguo-plus-v04-auto-load-full-content.html">鲜果 Plus</a> 脚本的作者 <a class="external" target="_blank" href="http://blog.recih.cn/">CIH</a> 的推荐，这样鲜果用户也可以实现自动全文了 <img src='/b.gif' alt=':evil:' class='wp-smiley sm-evil' /> </p></blockquote>
<p><img src="http://fis.io/wp-content/uploads/2008/06/full-feed.png" title="在 Google Reader 里强制查看全文 feed"></p>
<p>您需要使用 Firefox 的用户脚本管理器 <a class="external" target="_blank" href="http://addons.sociz.com/firefox/16/" title="安装 Greasemonkey 扩展">Greasemonkey</a>, 它近日更新的 0.8 版已支持最新版本的 <a href="http://fis.io/firefox-3-new-features.html" title="我接触到的几个 Firefox 3 新特性">Firefox 3</a>. 让 Google Reader 获取全文 feed 的脚本是 <a class="external" target="_blank" href="http://userscripts.org/scripts/show/19949" title="访问脚本主页">google reader full feed changer</a>, 或者 <a href="http://userscripts.org/scripts/source/19949.user.js">直接安装它</a>。装好之后，离完成就只剩最后一点点设置了：<span id="more-497"></span></p>
<p>以 <a class="icon-left" href="http://rss.sina.com.cn/news/allnews/sports.xml" title="feed 地址">新浪体育新闻</a> 为例，打开一篇新浪上的原文，按 ctrl+u 查看页面源代码，发现正文部分是用 &lt;div class="artibody"&gt; 标注的，那么修改一下刚才的脚本，该脚本通常位于 Firefox 配置文件夹下：</p>
<p><code>%appdata%\Mozilla\Firefox\Profiles\****<br />
\gm_scripts\googlereaderfullfeedchan.user.js</code></p>
<p>编辑它，在第九行以下，添加一个 SITE_INFO:</p>
<p><code>{<br />
&nbsp;&nbsp;url: 'http://(sports|rss).sina.com.cn',<br />
&nbsp;&nbsp;xpath: '//div[@class="artibody"]',<br />
&nbsp;&nbsp;charset: 'gb2312' //非必需<br />
},</code></p>
<p>保存脚本文件，F5 刷新 Google Reader, 看看新浪的 feed 吧，已经是文首截图的样子了 <img src='/b.gif' alt=':D' class='wp-smiley sm-grin' />  现在您知道了如何添加一个 SITE_INFO, 添加一下您需要看全文的 feed 信息，以后就省事喽。注意事项：</p>
<ul>
<li>如果网站域名和 feed 域名不一样，需要把两个域名都写进去，比如：
<p><code>url: 'http://(site.com|feed.feedsky.com)',</code></p>
</li>
<li>class 和 id 都可以识别</li>
<li>如果出现乱码，在该网站页面源代码中搜索 charset, 设定进 SITE_INFO 中</li>
<li>目前该脚本还不能对付 cnBeta, 因为 cnBeta 的文章地址设置了一个跳转重定向。没关系，订阅 <a href="http://feeds.feedburner.com/cnbeta_full" title="cnBeta 的全文 feed">feeds.feedburner.com/cnbeta_full</a> 就好了</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/google-reader-full-feed-changer.html/feed</wfw:commentRss>
		<slash:comments>143</slash:comments>
		</item>
		<item>
		<title>两句 CSS 完美截断侧栏最新评论列表</title>
		<link>http://fis.io/css-wrap-comment-widget-lists.html</link>
		<comments>http://fis.io/css-wrap-comment-widget-lists.html#comments</comments>
		<pubDate>Tue, 10 Jun 2008 17:18:11 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[美化]]></category>

		<guid isPermaLink="false">http://fis.io/?p=496</guid>
		<description><![CDATA[常见的侧栏最新评论列表一般有两种格式：路人甲 发表于 某某文章，或者 路人乙：引言…… 它们都有个问题，就是换行很难控制，长短不一，有时候... ]]></description>
			<content:encoded><![CDATA[<p><img style="float: right; margin: 10px;" src="http://fis.io/wp-content/uploads/2008/06/painting.png" border="0" alt="" />常见的侧栏最新评论列表一般有两种格式：<span style="text-decoration: underline;">路人甲 发表于 某某文章</span>，或者 <span style="text-decoration: underline;">路人乙：引言……</span> 它们都有个问题，就是换行很难控制，长短不一，有时候内容还会把页面撑破。老肥研究了很久 CSS 手册，找到了一个符合标准的办法，像现在我的侧栏 widget 一样，强制只显示一行，多出来的一刀切断，是不是有点像 Gmail 里面的预览文字？方法很简单，比如我的侧栏 widget 是 &lt;div class="widget"&gt;, 要对它下面的 &lt;li&gt; 进行截断，那么用下面的 CSS 来强制不换行，溢出部分隐藏：</p>
<p><code class="css">.widget li {<br />
&nbsp;&nbsp;white-space: nowrap;<br />
&nbsp;&nbsp;overflow: hidden;<br />
}</code></p>
<p>视其父容器属性的不同，在 IE 下可能无法截断，那么在上面两句后再跟一个 width 定义就可以了。如果不喜欢一个字被切成两半，或者想多显示一行引言，可以这样做：<span id="more-496"></span></p>
<p><code class="css">.widget li {<br />
&nbsp;&nbsp;height: 3.6em;<br />
&nbsp;&nbsp;overflow: hidden;<br />
}</code></p>
<p>这里是给每个 &lt;li&gt; 限定高度，溢出部分截断。em 是一个相对的单位，调试一下选一个合适的数值，一行两行都可以实现，像下图。或者用 max-height 代替 height, 兼容性待考。需要最后跟个省略号的话可以试试 text-overflow: ellipsis; 是个非标准属性，我没有试过，不知道好不好用 <img src='/b.gif' alt=':)' class='wp-smiley sm-smile' /> </p>
<p><img style="margin-left: 50px; border: 5px solid #f3f3ec" src="http://fis.io/wp-content/uploads/2008/06/wrapped-lists.png" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/css-wrap-comment-widget-lists.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>老肥谈如何运用好链接</title>
		<link>http://fis.io/better-links-usage.html</link>
		<comments>http://fis.io/better-links-usage.html#comments</comments>
		<pubDate>Sat, 31 May 2008 12:11:09 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://fis.io/?p=487</guid>
		<description><![CDATA[幸福收藏夹写了一篇很好的文章 如何运用好链接? 我很赞同，于是写一篇我对链接使用的建议，给大家参考。 内部链接 内部链接一般是推荐一下读者... ]]></description>
			<content:encoded><![CDATA[<p><img style="float: right; margin-left: 10px;" title="我不是城管" src="http://fis.io/wp-content/uploads/2008/05/control.png" alt="" border="0">幸福收藏夹写了一篇很好的文章 <a class="external" title="如何运用好链接? : 幸福收藏夹" href="http://www.happinesz.cn/archives/430/" target="_blank">如何运用好链接?</a> 我很赞同，于是写一篇我对链接使用的建议，给大家参考。</p>
<ul>
<li>
<h4>内部链接</h4>
<p>内部链接一般是推荐一下读者可能会感兴趣的以前的文章，可以增强关联性。它可以一定程度上打击抄袭，虽然有些人会把链接抹掉，但总比没有的好。我的 <a href="http://fis.io/tag/favicon" title="标签: favicon">favicon 设计系列</a> 被很多人转载过，其中不乏故意隐匿出处的人，但由于插图多，他们没工夫挨个删，里面的内部链接也跟着幸存下来了。还有一篇 <a href="http://fis.io/build-efficiency-tags-system-for-blog.html">如何为 blog 建立一个高效的标签系统</a>，我故意在文中留下了一个纯文本的链接（当然也是为了展示 URL 的需要），它也在抄袭者手中幸存了。在这样一个大环境里，对付抄袭没有什么特别有效的办法，但是也不要老是在文中提自己的名字——照顾一下正经读者的感受吧。</li>
<li>
<h4>外部链接</h4>
<p>外部链接就是方便读者点击相关内容的，很重要。最好给链接加上 title 属性（鼠标放上去显示的文字），描述一下这是一个什么内容，比如写上对方文章的标题。这样读者可以自己决定看不看，有个预览。<span id="more-487"></span></li>
<li>
<h4>是否在新标签中打开</h4>
<p>在本页打开的链接，读者可以自行决定是否新标签，而在新标签打开的链接，基本上是强制性的。有个现象，就是国内网站的新标签链接远远多于国外网站，从门户到论坛，大家已经习惯被剥夺选择权了。这个很难一刀切，在新标签打开吧，容易招致反感；在本页打开吧，读者可能就忘了回来，况且新标签是有实际作用的，当读者需要新老都保留的时候。我这里是内部链接本页打开，外部链接新标签。当然不是说就推荐您这么做，但我的个人忠告是内部链接最好不要新标签，内部和外部是两个系统，我不希望我的标签栏被一个网站占据。</li>
<li>
<h4>给读者一个新标签提示</h4>
<p>更进一步的说，一个链接是否新标签并不直观，给读者选择权的同时，是否能够像链接的 title 那样，有个预览和心理准备？这里我推荐一个 WordPress 插件 <a class="external" title="External Links Plugin For WordPress" href="http://www.semiologic.com/software/publishing/external-links/" target="_blank">External Links</a>, 它可以给外部链接自动加上这样的一个弹出小图标。如果您不是 WordPress, 或者像我一样希望不通过插件就实现这样的效果，也可以通过 CSS, 给链接的 a 标签加上 class="external", 然后添加 CSS 描述：</p>
<p><code class="css">a.external {<br />
&nbsp;&nbsp;background: url(...) no-repeat center right;<br />
&nbsp;&nbsp;padding-right: 13px;<br />
}</code></p>
<p>对以前的文章，我导出 xml, 搜索替换 target="_blank" 为 target="_blank" class="external" 再导入就搞定了。类似的，我还做了一个 <a class="download" href="http://fis.io/wp-content/themes/gluedideas_subtle/images/icona.png">下载图标</a>。</li>
<li>
<h4>已访问过的链接的区分</h4>
<p>这是一个看上去不显眼，实际上挺重要的东西，读者可以从链接的外观区分是否访问过，提高阅读效率。通常的办法有：改变颜色，加下划线、下点线等。我的代码：</p>
<p><code class="css">a, a:link {<br />
&nbsp;&nbsp;color: #bb6f02;<br />
&nbsp;&nbsp;text-decoration: none;<br />
}<br />
a:visited {<br />
&nbsp;&nbsp;text-decoration: underline;<br />
}<br />
a:hover, a:active {<br />
&nbsp;&nbsp;text-decoration: underline;<br />
&nbsp;&nbsp;color: #e58802;<br />
}</code></p>
<p>链接没有下划线，鼠标放上去有，访问过的链接也有。</li>
</ul>
<p>差不多说完了，希望能对您有所帮助。祝天下所有小盆友们，和童心未泯的老盆友们节日快乐 <img src='/b.gif' alt=':P' class='wp-smiley sm-tongue' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/better-links-usage.html/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>小改 Show Top Commentators, 及求助</title>
		<link>http://fis.io/show-top-commentators-plugin-modify.html</link>
		<comments>http://fis.io/show-top-commentators-plugin-modify.html#comments</comments>
		<pubDate>Sun, 18 May 2008 11:21:58 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://fis.io/?p=248</guid>
		<description><![CDATA[最近琢磨着给评论相关的侧栏组件加上评论者自己的图像，由于 16x16 比较小不太适合用 Gravatar, 于是考虑更加简单的 favicon. 而最新评论当中没有留下网... ]]></description>
			<content:encoded><![CDATA[<p><img style="float: right; margin-left: 10px;" title="Favorites" src="http://fis.io/wp-content/uploads/2008/05/favorites.png" border="0" alt="" />最近琢磨着给评论相关的侧栏组件加上评论者自己的图像，由于 16x16 比较小不太适合用 <a title="增强 Gravatar 的 WorPress 插件: WP-SnapAvatar" href="http://fis.io/wp-snapavatar-plugin.html">Gravatar</a>, 于是考虑更加简单的 <a title="标签: favicon" href="http://fis.io/tag/favicon">favicon</a>. 而最新评论当中没有留下网站地址的网友比较多，于是从侧栏上的 <a title="访问插件主页" href="http://www.pfadvice.com/wordpress-plugins/show-top-commentators/" target="_blank" class="external">Show Top Commentators</a> 下手，这个插件可以显示自定义时间内评论最多的网友链接。编辑该插件，几次测试之后确定了正确的修改方法，修改第 86 行（具体显示效果可能依赖于其他关于&lt;li&gt;的 css 定义）：</p>
<p><code class="php">echo $ns_options["start_html"];  //修改为：<br />
echo "&lt;li style='background-image: url(" . $url . "/favicon.ico)'&gt;";</code></p>
<p>即用 $url 获取评论者的网站地址，将 /favicon.ico 作为列表图标。但是已知的问题有两个：没有 favicon, 或者 favicon 并不在默认地址。我用目前上榜的 5 个网友测试了一下，显示效果如下：</p>
<table width="430">
<tr align="center" bgcolor="#f3f3eb">
<td width="17%"></td>
<td width="17%"><a href="http://phinx.cn/">mercy</a></td>
<td width="17%"><a href="http://cs72.com/">kerby</a></td>
<td width="17%"><a href="http://geedr.com/">Geedr.com</a></td>
<td width="17%"><a href="http://www.justiner.cn/">kaka</a></td>
<td width="17%"><a href="http://dickeydong.cn/">Dickey</a></td>
</tr>
<tr align="center">
<td bgcolor="#f3f3eb">IE6</td>
<td bgcolor="#ddffdd">正确</td>
<td></td>
<td bgcolor="#ddffdd">正确</td>
<td></td>
<td></td>
</tr>
<tr align="center">
<td bgcolor="#f3f3eb">Opera</td>
<td bgcolor="#ddffdd">正确</td>
<td></td>
<td bgcolor="#ddffdd">正确</td>
<td></td>
<td></td>
</tr>
<tr align="center">
<td bgcolor="#f3f3eb">Firefox</td>
<td bgcolor="#ddffdd">正确</td>
<td bgcolor="#ddffdd">正确</td>
<td bgcolor="#ddffdd">正确</td>
<td></td>
<td bgcolor="#ddffdd">正确</td>
</tr>
<tr align="center">
<td>&nbsp;</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<p>其中 kaka 的路径错误，kerby 和 Dickey 的文件存在，但显示有有问题。对前一种情况，总不能去分析对方的 header 来获取吧，太不现实。后一种情况，我也没弄明白为什么… 或者，可以让获取错误的时候显示 css 里定义的默认列表图标？欢迎高手给指导一下 <img src='/b.gif' alt=':P' class='wp-smiley sm-tongue' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/show-top-commentators-plugin-modify.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Firefox 美化教程（四）让工具栏更整洁</title>
		<link>http://fis.io/firefox-toolbar-tidy-up.html</link>
		<comments>http://fis.io/firefox-toolbar-tidy-up.html#comments</comments>
		<pubDate>Fri, 03 Aug 2007 12:28:38 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[电脑 软件]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[扩展]]></category>
		<category><![CDATA[美化]]></category>

		<guid isPermaLink="false">http://fis.io/firefox-toolbar-tidy-up.html</guid>
		<description><![CDATA[Mac 上的 Safari 那种工具栏布局一直很流行：菜单栏隐藏掉；工具栏左边放工具按钮，中间是地址栏，右边放搜索框；再下面是书签栏和标签栏。虽然不... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://fis.io/wp-content/uploads/2007/06/linfox.png" title="该图的 244x244 png 透明图标"><img src="http://fis.io/wp-content/uploads/2007/06/firefoxlogo.jpg" style="float: left; margin-right: 10px; margin-top: 7px" border="0" /></a>Mac 上的 Safari 那种工具栏布局一直很流行：<a href="http://fis.io/firefox-extension-personal-menu.html" title="Firefox 美化教程（三）隐藏菜单栏">菜单栏隐藏掉</a>；工具栏左边放工具按钮，中间是<a href="http://fis.io/firefox-extension-fission.html" title="Firefox 美化教程（一） Fission 与地址栏">地址栏</a>，右边放搜索框；再下面是书签栏和标签栏。虽然不一定要按照这样来，但这种布局方案很值得参考，因为工具按钮和地址栏都不需要占一整行，而且高度相仿。</p>
<h4>去掉工具按钮的下拉箭头</h4>
<p>工具按钮旁边的下拉箭头（比如前进、后退按钮右边）没有多大实际作用，点右键就可以弹出下拉菜单，这比按那么小的箭头方便多了。况且很多时候我都是用快捷键代替，或者把后退按钮绑定到鼠标中键，这对 Windows 资源管理器同样有用。去掉这些下拉箭头需要编辑 Firefox 配置文件中的 UserChrome.css，这个文件通常在:</p>
<p><code>%appdata%\Mozilla\Firefox\Profiles\<br />
xxxxxxxx.default\chrome\userChrome.css</code></p>
<p>其中的<font style="background-color: #ddddff"> %appdata% </font>可以直接在资源管理器中输入，会自动定向过去，典型位置会是：<font style="background-color: #ddddff"> C:\Documents and Settings\{USERNAME}\Application Data </font>。在 UserChrome.css 中增加一段：<span id="more-426"></span></p>
<p><code class="css"> .toolbarbutton-menubutton-dropmarker {<br />
display: none !important;<br />
}</code></p>
<p>重启 Firefox, 下拉箭头就了。用 <strong>{ display: none !important; }</strong> 还可以隐藏掉很多东西，比如不常用到的右键菜单条目——请参考 <a href="http://fis.io/hide-useless-menu-items-in-firefox.html">如何隐藏 Firefox 各处右键菜单中的多余项</a>。</p>
<h4>减少工具按钮之间的间距</h4>
<p>这需要改动当前皮肤，可以在配置目录下的 extensions 里面找到皮肤文件 .jar, 解压之后找到 globaltoolbar.css 搜索一下 "min-width", 不同皮肤语句写法可能不同，这里不详细说了。</p>
<h4>隐藏“转到”按钮</h4>
<p>相信这个按钮很少会被按到，因为大家在地址栏输入文字之后一般都直接回车吧。那么在地址栏输入 <font style="background-color: #ddddff"> about:config </font>，找到布尔值 <font style="background-color: #ddddff"> browser.urlbar.hideGoButton </font>，双击它，改成 <font style="background-color: #ddddff"> true </font>。</p>
<h4>可变的搜索框宽度</h4>
<p>单纯改变搜索框的宽度可以在 UserChrome.css 中增加：</p>
<p><code class="css">#search-container, #searchbar {<br />
max-width: 400px !important;<br />
width: 400px !important;<br />
}</code></p>
<p>不过这里我推荐一个我一直用的扩展： <a href="https://addons.mozilla.org/en-US/firefox/addon/1172" target="_blank" class="external">Searchbar Autosizer</a> :</p>
<ul>
<li>方便地设定最大和最小宽度，最小设为 0 的时候搜索框宽度为当前搜索引擎名称的显示宽度。</li>
<li>随着字符的输入，搜索框逐渐变宽。</li>
<li>回车之后清空已输入的文字。（可选）</li>
<li>回车之后跳转回默认搜索引擎。（可选）</li>
</ul>
<p>改完这些是不是觉得工具栏整洁了许多？如果您有好的点子欢迎指教！</p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/firefox-toolbar-tidy-up.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Firefox 美化教程（二） Gmail Manager</title>
		<link>http://fis.io/firefox-extension-gmail-manager.html</link>
		<comments>http://fis.io/firefox-extension-gmail-manager.html#comments</comments>
		<pubDate>Wed, 25 Jul 2007 14:36:58 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[电脑 软件]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[扩展]]></category>
		<category><![CDATA[美化]]></category>

		<guid isPermaLink="false">http://fis.io/firefox-extension-gmail-manager.html</guid>
		<description><![CDATA[Gmail Manager 是一款运行于 Firefox 的 Gmail 增强扩展，可自动检查多个 Gmail 帐户，显示空间占用、新邮件摘要，区别收件箱、标签、垃圾箱，可以自定义提... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://fis.io/wp-content/uploads/2007/06/linfox.png" title="该图的 244x244 png 透明图标"><img src="http://fis.io/wp-content/uploads/2007/06/firefoxlogo.jpg" style="float: right; margin-left: 10px; margin-top: 7px" border="0" /></a><a href="https://addons.mozilla.org/en-US/firefox/addon/1320" target="_blank" class="external">Gmail Manager</a> 是一款运行于 Firefox 的 Gmail 增强扩展，可自动检查多个 Gmail 帐户，显示空间占用、新邮件摘要，区别收件箱、标签、垃圾箱，可以自定义提示声音、点击之后打开标签的方式。默认显示位置在状态栏：</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/1320" target="_blank"><img src="http://fis.io/wp-content/uploads/2007/07/gmail-manager.jpg" alt="Gmail Manager" title="Gmail Manager" style="float: left; margin-right: 15px; margin-bottom: 10px" border="0" /></a>但是既然 <a href="http://fis.io/firefox-extension-fission.html" title="Firefox 美化教程（一） Fission 与地址栏">上一篇教程</a> 我们用 <a href="https://addons.mozilla.org/en-US/firefox/addon/1951" target="_blank" class="external">Fission</a> 实现了状态栏主要功能的向上整合，那么我们不妨也把 Gmail Manager 放到工具栏去，伪装成默认邮件按钮的样子（默认的邮件按钮已经被 Firefox2 拿掉了）：</p>
<p>1. 在 Gmail Manager 的设置中将所有 Gmail 帐户工具栏选项中的<strong>隐藏未读计数</strong>和<strong>隐藏邮件地址</strong>钩上，全局设置的工具栏选项中的<strong>打开帐户的时候重置未读计数</strong>不要钩。</p>
<p>2. 右击 Firefox 工具栏，在自定义中把 Gmail Manager 按钮拖到工具栏上合适的位置。做完这些，Gmail Manager 已经能在工具栏上工作了，正常的时候图标为红色，有未读邮件的时候图标变成蓝色，并且在窗口右下角弹出新邮件摘要。如果您希望对它的外观做一些美化，请继续阅读：</p>
<p><span id="more-422"></span>3. 首先要找到修改需要的图标，一般我们会把它改成和当前 Firefox 皮肤的工具栏图标风格一致的样子，可以去 Firefox 的扩展文件夹里找找皮肤里面带有的工具栏图标全集，在这里：（下面用我在用的皮肤 <a href="https://addons.mozilla.org/en-US/firefox/addon/3174" target="_blank" class="external">MacfoxII</a> 为例）</p>
<p><code>%appdata%\Mozilla\Firefox\Profiles\<br />
xxxxxxxx.default\extensions</code></p>
<p>找到皮肤所在文件夹里的 .jar 文件，用压缩工具解开它，搜索一下里面名字带有 "toolbar" 的文件，找到工具栏图标在 browsertoolbar.png 和 toolbar-small.png 里面，把里面的第一排邮件标准图标在 Photoshop 里切下来待处理，注意保留它的透明背景。</p>
<p><img src="http://fis.io/wp-content/uploads/2007/07/macfoxii-toolbar-icons-small.png" alt="MacfoxII toolbar icons small" title="MacfoxII toolbar icons small" style="margin-bottom: 15px" /><br />
4. 在上面的扩展目录里找到 Gmail Manager, 打开 .jar 了解目标格式。 图和CSS 都在</p>
<p><code>gmanager.jarskinclassic</code></p>
<p>该处图标定义了离线、连接错误、正常、新邮件四种状态，并且有大图标和小图标两份。另外有两种尺寸的 loading gif 动画。下面是我做的，可以存下来替换掉该处同名文件：</p>
<p><img src="http://fis.io/wp-content/uploads/2007/07/gm-large.png" style="margin-right: 20px; margin-bottom: 15px" /><img src="http://fis.io/wp-content/uploads/2007/07/gm-small.png" style="margin-bottom: 20px" /><br />
本来我还自定义了 loading gif 动画：两个 throbber.gif，但 <a href="http://fis.io/favicon-design-episode-4.html" title="如何为博客设计一个出色的 favicon （四）">gif 和背景的融合比较麻烦</a>，有兴趣可以自己做，过程类似。</p>
<p>5. 修改 overlay.css。上面的图标尺寸已经和原来的有了区别，所以必须在 css 里修改图片的 rect 值。找到 css 文件最末尾的 /*** Large icon images ***/ 和 /*** Small icon images ***/，改这 8 处图标的 rect 值，rect 如何知道？ 比如上面的<strong>新邮件</strong>大图标在 gm-large.png 中的 上，右，下，左 坐标分别为 0, 108, 26, 81, 那么：</p>
<p><code class="css">.gm-icon[status|="gm-account-state-logged-in"][newMail="true"] {<br />
-moz-image-region: rect(0px 108px 26px 81px); /* New mail */<br />
}</code></p>
<p>6. 更新修改过的文件到 .jar 中（需要关闭 Firefox） ，重启看效果：</p>
<p><img src="http://fis.io/wp-content/uploads/2007/07/gmail-manager-new-mail.png" alt="gmail manager new mail" title="gmail manager new mail" /></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/firefox-extension-gmail-manager.html/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Firefox 美化教程（一） Fission 与地址栏</title>
		<link>http://fis.io/firefox-extension-fission.html</link>
		<comments>http://fis.io/firefox-extension-fission.html#comments</comments>
		<pubDate>Mon, 16 Jul 2007 18:12:42 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[电脑 软件]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[扩展]]></category>
		<category><![CDATA[美化]]></category>

		<guid isPermaLink="false">http://fis.io/firefox-extension-fission.html</guid>
		<description><![CDATA[我的 Firefox 去掉了状态栏以扩大可用区域，原本状态栏里的两个东西可以巧妙地整合到地址栏里：页面加载进度，和鼠标指示链接。这两个修改可以用... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://fis.io/wp-content/uploads/2007/06/linfox.png" title="该图的 244x244 png 透明图标"><img src="http://fis.io/wp-content/uploads/2007/06/firefoxlogo.jpg" style="float: right; margin-left: 10px; margin-top: 7px" border="0" /></a>我的 Firefox 去掉了状态栏以扩大可用区域，原本状态栏里的两个东西可以巧妙地整合到地址栏里：页面加载进度，和鼠标指示链接。这两个修改可以用同一个扩展来完成，就是 <strong><a href="https://addons.mozilla.org/en-US/firefox/addon/1951" target="_blank" class="external">Fission</a></strong>.</p>
<p><img src="http://fis.io/wp-content/uploads/2007/07/fission-loading-progress.png" title="Firefox 地址栏显示页面加载进度" style="margin-bottom: 10px" /><br />
<strong>地址栏显示页面加载进度：</strong><br />
这是 Fission 的招牌功能，就不多说了，而且很多优秀的 Firefox 主题还内置有进度条样式，直接就可以和 Fission 搭配，比如我在用的主题 <a href="https://addons.mozilla.org/en-US/firefox/addon/3174" target="_blank" class="external">MacfoxII</a>.</p>
<p><img src="http://fis.io/wp-content/uploads/2007/07/fission-hover-link.gif" title="Firefox 地址栏显示鼠标指示链接" style="margin-bottom: 10px" /><br />
<strong>地址栏显示鼠标指示链接：</strong><br />
安装好之后在设置里面把这个功能启用就可以实现。也许您对默认的显示方式不满意，那么在</p>
<p><code>%appdata%\Mozilla\Firefox\Profiles\xxxxxxxx.default\<br />
chrome\userChrome.css</code></p>
<p>中加入以下代码可以定义链接文字的样式：<span id="more-414"></span></p>
<p><code class="css">#urlbar[fission-link] .textbox-input-box {<br />
color: mediumblue;<br />
background-color: aliceblue !important;<br />
}</code></p>
<p>字体和背景颜色可以用 <font color="mediumblue">mediumblue</font> 这样的颜色名称，也可以用十六进制代码，<a href="http://lutrov.com/blog/160/" target="_blank" class="external">这里是颜色名称/代码表</a>。上面的图例没有定义背景色，如果您高兴，也可以加些别的 CSS 样式比如字体、倾斜、右对齐什么的。</p>
<p><img src="http://fis.io/wp-content/uploads/2007/07/hover-icon.png" style="margin: 15px; float: left" title="hover icon" />指示链接时的地址栏图标当然也可以改。准备好一个透明背景的手形图标比如左边这个，把它<a href="http://www.motobit.com/util/base64-decoder-encoder.asp" target="_blank" class="external">转换成 Base64 编码</a>，替换掉下面这个文件里的</p>
<p><code>#urlbar[fission-link] #page-proxy-deck</code></p>
<p>字段里面，"base64," 之后，“)” 之前的内容：</p>
<p><code>%appdata%\Mozilla\Firefox\Profiles\xxxxxxxx.default\<br />
extensions\<br />
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}\chrome\fission.jar\<br />
content\fission\fission.css</code></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/firefox-extension-fission.html/feed</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>隐藏 Firefox 各处右键菜单中的多余项</title>
		<link>http://fis.io/hide-useless-menu-items-in-firefox.html</link>
		<comments>http://fis.io/hide-useless-menu-items-in-firefox.html#comments</comments>
		<pubDate>Thu, 31 May 2007 14:57:31 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[电脑 软件]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[美化]]></category>

		<guid isPermaLink="false">http://fis.io/hide-useless-menu-items-in-firefox.html</guid>
		<description><![CDATA[Firefox 中的很多菜单项目都是平时用不上的， 比如很少有人会在页面上点右键，再选择后退、打印之类的操作吧？再装些扩展，那右键臃肿得不能看了... ]]></description>
			<content:encoded><![CDATA[<p>Firefox 中的很多菜单项目都是平时用不上的， 比如很少有人会在页面上点右键，再选择后退、打印之类的操作吧？再装些扩展，那右键臃肿得不能看了。所以下面我介绍的是如何隐藏页面、书签等地方的右键菜单项目，可以根据自己需要选择性地隐藏它们。</p>
<p>下面的代码格式都是</p>
<p><code class="css">需要隐藏的项目A,<br />
需要隐藏的项目B,<br />
需要隐藏的项目C<br />
{ display: none !important; }</code></p>
<p>注意项目之间用半角逗号分隔，<strong>最后一个项目后面没有逗号</strong>。花括号里的是隐藏命令，!important 表示优先级。下面列出的可隐藏的项目看名字都是一目了然，我就不多解释了。<br />
另外，#context-sep-stop 表示页面右键菜单“停止”下方的分割线，如果你把它上方的东西都隐藏了，当然应该把分割线也一并拿掉。类似的还有书签右键菜单中的 menuseparator。<br />
编辑好需要隐藏的项目之后，把命令添加到 Firefox 的配置目录下这个文件中：</p>
<p><code>%appdata%\Mozilla\Firefox\Profiles\<br />
xxxxxxxx.default\chrome\userChrome.css</code></p>
<p>如果没有这个文件就新建一个，默认状态下那里会有一个文件叫 userChrome-example.css ，用它另存也行。<br />
<span id="more-370"></span><br />
隐藏页面右键菜单项：</p>
<p><code class="css">#context-back,<br />
#context-forward,<br />
#context-reload,<br />
#context-stop,<br />
#context-sep-stop,<br />
#context-bookmarkpage,<br />
#context-savepage,<br />
#context-sendpage,<br />
#context-sep-viewbgimage,<br />
#context-openlink,<br />
#context-sep-open,<br />
#context-bookmarklink,<br />
#context-sendlink,<br />
#context-sep-copyimage,<br />
#context-sendimage,<br />
#context-setWallpaper,<br />
#context-printpage,<br />
#context-smartsearch<br />
{ display: none !important; }</code></p>
<p>隐藏书签菜单项：</p>
<p><code class="css">menuitem[label="Bookmark This Page..."],<br />
menuitem[label="Bookmark All Tabs..."],<br />
menuitem[label="Organize Bookmarks..."],<br />
menuitem[label="Organize Bookmarks..."] + menuseparator,<br />
menu[label="Bookmarks Toolbar Folder"]<br />
{ display: none !important; }</code></p>
<p>隐藏书签项的右键菜单项：</p>
<p><code class="css">#bookmarks-context-menu menuitem[label="New Bookmark..."],<br />
#bookmarks-context-menu menuitem[label="New Folder..."],<br />
#bookmarks-context-menu menuitem[label="Sort By Name"],<br />
#bookmarks-context-menu menuitem[label="Sort By Name"] + menuseparator,<br />
#bookmarks-context-menu menuitem[label="Open All in Tabs"],<br />
#bookmarks-context-menu menuitem[label="Open All in Tabs"] + menuseparator,<br />
#bookmarks-context-menu menuitem[label="Open"],<br />
#bookmarks-context-menu menuitem[label="Open in New Tab"],<br />
#bookmarks-context-menu menuitem[label="Open in New Tab"] + menuseparator,<br />
#bookmarks-context-menu menuitem[label="New Separator"],<br />
#bookmarks-context-menu menuitem[label="New Separator"] + menuseparator,<br />
#bookmarks-context-menu menuitem[label="Cut"],<br />
#bookmarks-context-menu menuitem[label="Paste"],<br />
#bookmarks-context-menu menuitem[label="Paste"] + menuseparator,<br />
#bookmarks-toolbox #main-menubar<br />
{ display: none !important; }</code></p>
<p>隐藏书签栏下拉最后的"open in tabs"</p>
<p><code class="css">.openintabs-menuseparator, .openintabs-menuitem<br />
{ display: none !important; }</code></p>
<p>隐藏工具栏上的下拉箭头，比如前进后退旁边的：</p>
<p><code class="css">.toolbarbutton-menubutton-dropmarker<br />
{ display: none !important; }</code></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/hide-useless-menu-items-in-firefox.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>常见网页浏览器的Acid2测试结果</title>
		<link>http://fis.io/acid2-browser-test.html</link>
		<comments>http://fis.io/acid2-browser-test.html#comments</comments>
		<pubDate>Fri, 18 May 2007 14:36:38 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网络 服务]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[WebKit]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://fis.io/acid2-browser-test.html</guid>
		<description><![CDATA[Acid2 is a test page, written to help browser vendors ensure proper support for web standards in their products. Please take the Acid2 test! Acid2是由Web Standards Project所设计和发起的一... ]]></description>
			<content:encoded><![CDATA[<p>Acid2 is a test page, written to help browser vendors ensure proper support for web standards in their products. Please <a href="http://www.webstandards.org/files/acid2/test.html" target="_blank" class="external">take the Acid2 test</a>!</p>
<p>Acid2是由<a href="http://www.webstandards.org/" target="_blank" class="external">Web Standards Project</a>所设计和发起的一项关于css标准支持以及各种html渲染的标准化测试，旨在促使各家浏览器推进网页标准化。你可以用你的浏览器访问一个<a href="http://www.webstandards.org/files/acid2/test.html" target="_blank" class="external">由复杂的html/css语句所编写的考核页面</a>，该页面应该呈现一个黄颜色的笑脸：</p>
<p><img src="http://www.webstandards.org/files/acid2/reference.png" title="the reference rendering" alt="the reference rendering" height="168" width="168" /></p>
<p>目前能通过测试的浏览器(内核名称)仅有: Safari(WebKit) / Opera(Presto) / Konqueror(KHTML)</p>
<p>Firefox 仍未能通过测试，据说测试中的3.0能通过。下图是Firefox 2.0.0.3(Gecko)的答卷：</p>
<p><img src="http://fis.io/wp-content/uploads/2007/05/firefox.jpg" alt="firefox.jpg" /></p>
<p>我们再看看 IE7 和 IE6... 天哪怎一个惨字能够形容...</p>
<p><img src="http://fis.io/wp-content/uploads/2007/05/ie7.jpg" alt="ie7.jpg" /></p>
<p>Internet Explorer 7.0 (Trident)</p>
<p><a href="http://fis.io/wp-content/uploads/2007/05/ie6.jpg" title="ie6.jpg"><img src="http://fis.io/wp-content/uploads/2007/05/ie6.jpg" alt="ie6.jpg" height="140" width="325" /></a></p>
<p>Internet Explorer 6.0 (Trident)</p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/acid2-browser-test.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

