css图标图像或图标图像? [英] css icon images or icon image?

查看:126
本文介绍了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

这篇关于css图标图像或图标图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆