怎么调整微信小程序 横竖屏横竖屏

在微信中看视频玩游戏的时候,手机屏幕可能就会变成横屏,那么当我们想要关闭横屏的时候,该怎么操作呢?下面小编来为大家介绍一下具体的关闭方法。
关闭方法:
1.首先找到手机桌面上的微信
2.然后我们打开微信,打到最右边的我选项,如下图所示
3.在我选项下找到设置,如下图所示
4.然后在设置下找到通过选项,如下图所示
5.在通用下我们能看到默认是横屏显示的,如下图所示
6.然后我们把横屏模式关掉就可以了,如图所示,这样就不会横屏了帖子很冷清,卤煮很失落!求安慰
手机签到经验翻倍!快来扫一扫!
反馈:微信中,竖屏对话框输入文字横屏消失
14浏览 / 5回复
如题,如图123,工程师看看是最新版問題还是emui5.0的問題,是p9p b356。
如果是微信問題,麻烦和微信那边反馈下。我反馈过了。
热门排名: 第7名
huafans 发表于
23:35问题解决了么?
工程师都抛弃用户了?
虎躯一震,菊花一紧
想要好久了 终于出来了
老大,我好崇拜你哟
可能感兴趣的板块:
用户名/注册邮箱/注册手机号
其他第三方号登录6被浏览2,827分享邀请回答暂时还没有回答,开始写第一个回答微信横屏问题
移动端html开发,我们常会用到横竖屏的判断做一些事情,比如说播放视频的时候时常使用横竖屏切来切换居中显示和全屏显示,如果你无数次尝试都失败了,请你看到最后,有惊喜哦!!。
一般来说,横竖屏的检测方式有以下几种:
一、使用浏览器自带的事件
使用浏览器自带事件orientationchange和浏览器对象window.orientation可以完美进行横竖屏幕切换。根据参考资料一,此事件在有些浏览器中使用绑定在body元素上的属性来实现,只有在页面发生css重排后才会被触发。解决此问题的方法是在body上增加一个css类,用来触发css的重排,具体css代码如下:
.portrait body div { width: 10%; }
.landscape body div { width: 15%; }
调用事件代码如下:
var updateOrientation = function() {
var orientation = window.
switch(orientation) {
case 90: case -90:
orientation = 'landscape';
orientation = 'portrait';
// set the class on the HTML element (i.e. )
document.body.parentNode.setAttribute('class', orientation);
// event triggered every 90 degrees of rotation
window.addEventListener('orientationchange', updateOrientation, false);
2、使用媒体查询(media query)
媒体查询里面中有横竖屏幕的检测,orientation: portrait(竖)/landscape(横),媒体查询该属性的生效系统版本为:iOS 3.2+, Android 2.0+和一些其他浏览器。
具体代码如下:
@media all and (orientation: portrait) {
body div { width: 10%; }
@media all and (orientation: landscape) {
body div { width: 15%; }
3、使用定时器,定期检测当前页面的长宽
此种方法通过定时检测当前页面的长宽,通过对比长宽,对其进行判断,根据判断结果模拟页面的横竖屏,此方法性能堪忧,主要用于以上1,2均不支持的浏览器或者手机。废话少说,上代码。
var updateOrientation = function() {
// landscape when width is biggest, otherwise portrait
var orientation = (window.innerWidth & window.innerHeight) ? 'landscape': 'portrait';
// set the class on the HTML element (i.e. )
document.body.parentNode.setAttribute('class', orientation);
// initialize the orientation
updateOrientation();
// update every 5 seconds
setInterval(updateOrientation, 5000);
4、横屏终结版
综上,产生了横屏终结版。代码如下:
(function(){
var supportsOrientation = (typeof window.orientation == 'number' && typeof window.onorientationchange == 'object');
var HTMLNode = document.body.parentN
var updateOrientation = function() {
// rewrite the function depending on what's supported
if(supportsOrientation) {
updateOrientation = function() {
var orientation = window.
switch(orientation) {
case 90: case -90:
orientation = 'landscape';
orientation = 'portrait';
// set the class on the HTML element (i.e. )
HTMLNode.setAttribute('class', orientation);
updateOrientation = function() {
// landscape when width is biggest, otherwise portrait
var orientation = (window.innerWidth & window.innerHeight) ? 'landscape': 'portrait';
// set the class on the HTML element (i.e. )
HTMLNode.setAttribute('class', orientation);
updateOrientation();
var init = function() {
// initialize the orientation
updateOrientation();
if(supportsOrientation) {
window.addEventListener('orientationchange', updateOrientation, false);
// fallback: update every 5 seconds
setInterval(updateOrientation, 5000);
window.addEventListener('DOMContentLoaded', init, false);
温馨提示: 1、如果移动端所有浏览器都失效,请检查手机屏幕旋转是否开启;2、如果只有微信旋转失效,而在浏览器中打开正常,请打开微信的【开启横屏模式】;3、如果以上两条都无法解决,请检查人品。
5、参考资料
更多内容请查看
Table of Contents
Powered by &&|&&&zak wu 2015微信怎么关闭横屏 微信关闭横屏图文教程
- 绿茶文章中心
&&&&&&&&&微信怎么关闭横屏 微信关闭横屏图文教程
微信怎么关闭横屏 微信关闭横屏图文教程
作者:佚名
来源:绿茶软件园
  微信怎么关闭横屏?在使用微信的过程中,聊天都是习惯了用竖屏,但是有的时候玩游戏或者看微信上的视频就容易设置成横屏,如果有一天不想用横屏了,想关掉应该怎么操作呢?下面小编就教教你关闭的方法吧。
  1. 打开微信,点击最右边的我选项;
  2. 在我选项下找到设置,然后在设置下找到通用选项;
  3. 在通用下我们能看到默认是横屏显示的,然后我们把横屏模式关掉就可以了,这样就不会横屏了。
  简单的三个步骤就能关闭微信横屏啦,需要的朋友可以试试。
本类推荐本类排行
热门软件热门标签

我要回帖

更多关于 微信怎么屏蔽朋友圈 的文章

 

随机推荐