问题描述
现在,我想要在www.trailbehind.com上提供图片。
I am now getting to the point that I want to sprite the images on www.trailbehind.com.
大多数图片都是由JavaScript函数加载的,我有很多小的图像,如地图图标。
Most of the images are loaded by JavaScript functions, and I have lots of little images such as the map icons.
有没有支持此功能的软件?我知道,如果你的图像在Django模板中,你可以使用Django-sprites。如果你想编写一些Java代码,你也可以使用GWT。
Is there any software that supports this? I know that you can use Django-sprites if your images are in Django templates. And you can use GWT similarly, if you want to write some Java code.
对于一个使用Javascript的Python / Django网站来说,最好的办法是前端?
What's the best way to go about this for a website that is Python/Django with a Javascript front-end? I never show any HTML unless the user has JavaScript turned off.
推荐答案
您也可以使用。它是一个用于生成css sprites的开源命令行工具。
You can also use Glue. It's an open-source command line tool to generate css sprites.
这篇关于最好的方式来润色图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!