fis-spriter-csssprites icon indicating copy to clipboard operation
fis-spriter-csssprites copied to clipboard

能否支持对2x的资源单独打包,并自动生成background-size的css属性

Open puppywang opened this issue 10 years ago • 1 comments

RT,目前retina的设备越来越多,特别是移动端,基本都完成了1x->2x甚至4x的过渡,目前csssprites只能全局指定scale来自动生成background-size,不能单独针对特定的资源做这样的处理,对应我们有1x,2x都有的项目就不太适用了,不知能否将引入分组的概念,通过正则匹配分组,然后分组单独打包并制定scale等参数,从而支持不同scale的资源做不同的处理方式,谢谢

puppywang avatar Jun 28 '15 02:06 puppywang

一直都是支持 background-size: \d+px \d+px 这种,你可以保留原来的 background-size 来应对这类需求。

oxUnd avatar Jun 28 '15 03:06 oxUnd