自动创建精灵
我从设计师那里得到了具有以下结构的文件夹*:
文件.css
图像/
是否有任何工具可以自动为图像文件夹创建精灵并将所有图像引用从 file.css 替换到适当的精灵部分?
*它实际上不是设计师(在 Photoshop 等中创建设计的人),而是从中制作 html+css 的人。这个职业用英语如何正确称呼?在俄语中,我们将其分为“дизайнер”(设计师)和“верстальщик”(我会逐字将其翻译为“标记者”)。我很确定英语中也有同样的分隔。
更新。
我发现Sprite and Image Optimization库可能就是我一直在寻找的。
I get the folder with the following structure from my designer*:
file.css
images/
Is there any tool which can automatically create sprite for images folder and replace all images references from file.css to appropriate sprite sections?
*It is actually not a designer (the man who creates design in, for example, Photoshop) but the man who makes html+css from it. How is this profession correctly called in English? In russian we have a separation into "дизайнер" (designer) and "верстальщик" (I would verbatim translate it as "markuper"). I am pretty sure there is the same separation in English.
Update.
I have found Sprite and Image Optimization library which is probably what I was looking for.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您打算使用 .NET,一个不错的框架是 Sprite &图像优化,您可以找到一个不错的视频教程来开始
甚至Scott Hanselmen 有一个 关于这个框架的很好的教程。
If you are going to use .NET a nice framework is Sprite & Image Optimization and you can find a nice Video tutorial to start with
And even Scott Hanselmen has a nice tutorial as well regarding this framework.