Home  >  Q&A  >  body text

html5 - webapp 里的雪碧图坐标怎么算的用什么单位能找准?

手机的前端页面加载了sprite图,但是x和y的坐标点,确定不了,这是怎么换算的。
ps上是已px为单位的。
比如说坐标为 x=-128px y=-336px
换算成rem单位都去除以10.
x=-12.8rem y=-33.6rem
还是没有定位到,是什么原因?

迷茫迷茫2721 days ago347

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-17 13:07:00

    There are several grids in the design draft

    reply
    0
  • 黄舟

    黄舟2017-04-17 13:07:00

    x and y are set to rem units, and the background-size attribute must also be set to rem units

    reply
    0
  • Cancelreply