Simply upload your icons individually to your theme’s “images/csprite” folder.
只需将图标分别上传到主题的“图像/ csprite”文件夹中即可。 p>
Go to WordPress Dashboard > Tools > CSprite > Rebuild to rebuild the sprite.
转到WordPress信息中心>工具> CSprite>重建以重建精灵。 p>
CSprite will do all the hard work of combining all the images into a single graphic.
CSprite将完成所有将所有图像组合成单个图形的艰苦工作。 p>
It will create all the classes for you in the enqueued stylesheet.
它将在排队的样式表中为您创建所有类。 p>
You can then simply use the sprite in your theme like this:
然后您可以像这样简单地在主题中使用精灵: p>
div> p>
It will name the classes according to the image names, so make sure that they are unique.
它将根据图像名称命名类,因此请确保它们是唯一的。 p>
Read more about this plugin at http://www.creatomatic.co.uk/csprite-automatic-image-sprite-tool-wordpress/
在http://www.creatomatic.co.uk/csprite-automatic-image-sprite-tool-wordpress/ p>上了解有关此插件的更多信息。