资 源 简 介
Stijl is a tool which automatically builds sprite sheets from an existing CSS file. There are two components: an HttpHandler which processes CSS resources on the fly and injects the (virtual) sprite URLs into the CSS rules, and a stand-alone build task which generates real files which can be shared across a web farm or CDN.
This is currently in beta; it works in simple test cases but has not been applied to a real production environment yet. I"d be much obliged to get any reports of use in the field.
Current features:
Will automatically replace CSS rulesets with sprited equivalents
Includes a manual mode in which users explicitly opt-in to spriting
Processes "background-image" as well as the shorthand "background" CSS rules
Handles 4-, 8-, 24-, and 32-bit PNGs and GIFs
Correctly handles standard HTTP headers: Cache-Control, ETag, Last-Modified, If-Modified-Since, and If-None-Match
Combines