微信小程序屏幕页面横向
发布时间:2023年12月29日
微信小程序可以指定某一个页面横向展示,具体方法为:在需要横向展示的页面中添加"pageOrientation": "landscape"
即可。如下图:

页面展示效果是这样子的:

如果将"pageOrientation"
设置为portrait
,则页面是竖向的,就是我们常用的方向,如下图的效果:

文章来源:https://blog.csdn.net/qq_29517595/article/details/135293460
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:chenni525@qq.com进行投诉反馈,一经查实,立即删除!