@jameszuo
2016-01-22T09:16:36.000000Z
字数 304
阅读 732
技术需求
在 AMS 静态配置中上传多个图片后自动进行合并,并输出包含坐标信息的 URL,业务方解析 URL 中的坐标信息,生成雪碧图定位代码
a.png
b.png
c.png
<img src="xx.png" alt="xx"/>
改为
<div style="
width:46px;
height:46px;
background:url(http://i.gtimg.cn/x0y0w46h46;x0y56w54h49;x0y119w13h23.png) 0 0 no-repeat;
"></div>