css图标图像或图标图像?

问题描述:

我有一个网站有许多图标,每个图标有独立的图像,但我想添加所有的万元图标到一个图像,并使用更快的加载,但我不知道,如果我应该这样做。

i have a website which has many icons and each icon has separate image, but i was thinking to add all thous icons into one image and use that for faster load, but im not sure if i should do this.

这是什么是利弊。有什么建议么?或者我应该只保留它的1图像1个图标?

what is pros/cons for this. any suggestions? or should i just keep it 1 image for 1 icon?

这是一个常见的这里有一个很好的,虽然有点过时的文章解释它们: http://www.alistapart.com/articles/ sprite

That's a common (and good) technique called a CSS Sprite. Here's a good, albeit a bit dated, article explaining them: http://www.alistapart.com/articles/sprites