什么时候不使用CSS sprites? [英] when not to use CSS sprites?

查看:96
本文介绍了什么时候不使用CSS sprites?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道什么时候不使用CSS sprites。 CSS sprites工作伟大,但有什么时候,他们创造了很多头痛吗?

I want to know when not to use CSS sprites. CSS sprites works great, but are there any occasions when they create a lot of headaches?

推荐答案

您的网站的可维护性将受到影响。仅合并属于相同逻辑单元并且不可能单独更新的图像。保持可能单独更改的图片开头。

Maintainability of your site will suffer from using them. Only combine images that belong to the same logical unit and are unlikely to be updated separately. Keep images that are likely to change separate to begin with.

这篇关于什么时候不使用CSS sprites?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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