New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css] 第114天 为什么要使用css sprites? #1038
Labels
css
css
Comments
|
减少页面向服务器请求次数,优化该页面的加载速度 |
就像钱不够,省着用,一块搬开两块用 |
css sprites指的是将该页面请求的图片资源都拼接到一个图片文件上,通过css从拼接好的图片上获取需要的部分。 |
根据项目具体需求来做选择吧,现在小图片用base64 也是可以的,或者图标字体库 |
CSS sprites 把许多小图片 icon 合成一张大图片。利用 以前一般使用 Photoshop 进行拼接,现在的话有工具可以直接生成。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
第114天 为什么要使用css sprites?
#55
The text was updated successfully, but these errors were encountered: