Javey / imerge

css sprite tool. css合图工具

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

当图片尺寸有小数的时候,合完之后的尺寸貌似不太对。

dracupid opened this issue · comments

@dracupid 理论上,图片尺寸不应该存在小数才对。没有0.5px吧

比如一个icon div的尺寸和background-size 都是44.5px * 44.5px 这样的情况?

发现浏览器对小数会进行四舍五入,所以统一使用Math.round处理px