<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CSS Sprites on 不够智能的网志</title><link>https://blog.94smart.com/tags/CSS-Sprites/</link><description>Recent content in CSS Sprites on 不够智能的网志</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Mon, 08 Oct 2007 03:39:10 +0000</lastBuildDate><atom:link href="https://blog.94smart.com/tags/CSS-Sprites/index.xml" rel="self" type="application/rss+xml"/><item><title>原来是CSS Sprites呀</title><link>https://blog.94smart.com/posts/2007/10/1200/</link><pubDate>Mon, 08 Oct 2007 03:39:10 +0000</pubDate><guid>https://blog.94smart.com/posts/2007/10/1200/</guid><description>&lt;p&gt;最近一阵国内Blogger开始涉及CSS Sprites，是因为有人偶然发现&lt;a href="http://www.marchbox.com/blog/css-sprite-in-google-search/"&gt;Google搜索首页JS的秘密&lt;/a&gt;，之后我才知道&lt;a href="http://blog.94smart.com/2006/07/21/821.html"&gt;去年Yahoo改版使用的技术&lt;/a&gt;原来就是这个，当时不知道怎么形容，只好套用软件资源图片的概念，看过&lt;a href="http://realazy.org/blog/2007/10/08/css-sprites/"&gt;Realazy的文章&lt;/a&gt;才大致理解，发现自己当时的理解还是太浅显，这是早在2005年就出现的技术呀。 不可否认，这种方法确实减少了CSS文件里的HTTP请求数，但是图片的更新和配置比较有难度，且半透明和不透明图片最好分开打包。 最后，也许是我胡思乱想，这种方法如果继续发展下去，完全可以省去前端操作人员（网页制作、编辑）用Photoshop切割图片的工序，会否变成引用原设计图直接作为资源图片呢？&lt;/p&gt;</description></item><item><title>新版Yahoo首页：用软件的方式做网站</title><link>https://blog.94smart.com/posts/2006/07/821/</link><pubDate>Fri, 21 Jul 2006 15:54:40 +0000</pubDate><guid>https://blog.94smart.com/posts/2006/07/821/</guid><description>&lt;p&gt;Yahoo的新版首页终于完整公布了，修改了部分设置，基于好奇的原因，小小研究了一下。 说得夸张点，Yahoo在用写软件的方式做网站。包括：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Yahoo在UI上的操作，比如换配色，虽然也有别的网站使用，但是从操作上，Yahoo的处理更像是软件的方式，有点像现在的Windows Live Messenger的换色操作。&lt;/li&gt;
&lt;li&gt;图片的调用跟软件的一种图片资源操作如出一辙，软件对图片资源有一种使用方法&amp;quot;将所有图片放在一张图片里，使用相应的位置坐标调用&amp;quot;，Yahoo的做法很类似，页面上的图标、背景图都是来自于一张大图（&lt;a href="http://us.i1.yimg.com/us.yimg.com/i/ww/thm/1/trough_1.3.gif"&gt;图标资源1&lt;/a&gt;、&lt;a href="http://us.i1.yimg.com/us.yimg.com/i/ww/thm/1/icons_1.1.gif"&gt;图标资源2&lt;/a&gt;、&lt;a href="http://us.i1.yimg.com/us.yimg.com/i/ww/thm/1/grd-1px_1.1.gif"&gt;背景图资源&lt;/a&gt;），使用CSS定义范围来显示相应图片，这么做确实有好处，可以方便预先读取和集中管理图片资源。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;其实前两天就想写这个内容的，但是最近我的Dreamhost空间极度不稳定，导致未能及时发布，今天在发的时候又忘了点当时想写的地方，只好凑合了。 Technorati : &lt;a href="http://technorati.com/tag/CSS"&gt;CSS&lt;/a&gt;, &lt;a href="http://technorati.com/tag/homepage"&gt;homepage&lt;/a&gt;, &lt;a href="http://technorati.com/tag/software"&gt;software&lt;/a&gt;, &lt;a href="http://technorati.com/tag/yahoo"&gt;yahoo&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>