在.NET中实时创建csssprites
有人为 .NET 创建了“实时”csssprite 生成器吗?
我想要一个或多个在运行时加载图像的目录,并且自动生成 css。
Has anyone created a 'realtime' csssprite generator for .NET ?
I want one or more directories of images that get loaded at runtime and the css is automatically generated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
就在这里。 你会发现它在
http://www.codeproject.com/KB/aspnet/cssspritegenerator.aspx
与 Microsoft 在 sprite 方面的尝试不同,使用此软件包您无需更改图像的存储方式及其显示方式。 您只需添加 .dll 并使用几行代码在 web.config 中配置该包即可。
该软件包还可以让您动态调整图像大小、压缩图像以及其他好东西。
Yes, there is. You'll find it at
http://www.codeproject.com/KB/aspnet/cssspritegenerator.aspx
Unlike Microsoft's attempt at sprites, with this package you don't have to change the way your images are stored and how they are shown. You simply add the .dll and configure the package in your web.config with a few lines.
This package also lets you resize images on the fly, compress them and other good things.
这就是您要找的吗为了?
这是我发现的最接近烘焙解决方案的方法。
Is this what you are looking for?
It's the closest I found to a baked solution.
好吧,最后是官方的东西...
尚不清楚它是否会进入核心 ASP.NET 框架,但这里有一个针对 csssprites 的 Microsoft codeplex 项目:
http://aspnet.codeplex.com/releases/view/50869
如果您喜欢它 - 使用它 - 或者只是喜欢这个想法然后添加评论。 我认为这对于 ASP.NET 框架来说是一件很棒的事情。 没有亲自使用过它(我必须自己发明轮子),但它得到了很好的评价。
它包括以下组件:
第二个版本中添加的功能:
未来版本考虑的功能:
Ok finally something official...
Not clear yet if it'll make it into the core ASP.NET framework but here's a Microsoft codeplex project for csssprites :
http://aspnet.codeplex.com/releases/view/50869
if you like it - use it - or just like the idea then add a comment. I think this would be a great thing to have in the ASP.NET framework. Have not personally used it (I had to invent the wheel myself) but its got good reviews.
It includes the following components:
Features Added in Second Release:
Features under consideration for future releases: