html5 - webapp 里的雪碧图坐标怎么算的用什么单位能找准?
迷茫
迷茫 2017-04-17 13:05:00
0
2
344

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

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
刘奇

There are several grids in the design draft

黄舟

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!