1、单位怎么解决呢,好多插件的设置都是px的。
2、顶部导航咋办呢,微信的顶部有一个返回和标题的导航,会占据一些空间,图的话 需要视觉去改改尺寸吗
3、效果是 手指滑动,会出现翻书的效果。这种事件怎么实现呢?
5、横屏的时候,屏幕的宽度是长的还是短的?
4、一定要用户横屏的。JS能控制用户横竖屏吗?
本人笨拙,望大神不吝赐教,感激不尽!
伊谢尔伦2017-04-17 11:49:16
For animation, transform supports px % vw vh. The unit should not be a problem.
For page turning animation, some are made with frame animation and css.
For finger sliding, just write it into the touch event.
js You cannot control the horizontal or vertical screen, but you can monitor whether the current screen is horizontal or vertical. If you use the horizontal screen on WeChat, there will be a bug. After you share the horizontal screen status of your Apple phone, you can no longer return to the horizontal screen, and you can only exit. Enter the web page again. I don’t know if it has been repaired now. Also, Android WeChat requires users to manually turn on the horizontal screen state (it does not refer to the screen rotation of the mobile phone, but WeChat itself also has a horizontal screen mode)
The size of the design drawing is impossible Taking into account all mobile phones, there are mobile phones of all sizes. There are long ones like the iPhone 5, and there are also various flat ones with virtual buttons. It depends on how you use it. You can refer to the concept of world coordinates in game development