简体   繁体   English

如何调整手机屏幕大小以显示优化的 UI web 应用程序版本?

[英]how to resize the mobile screen to show optimised UI web app version?

I am using react, Bootstrap,and some custom sass to build and style my front end web app, the design looks good on mobile but you need to pinch the screen(it looks zoomed in a little) to adjust to the screen width properly, how can I configure the media query properly to fix this?我正在使用 react、Bootstrap 和一些自定义 sass 来构建和设置我的前端 web 应用程序,该设计在移动设备上看起来不错,但您需要捏住屏幕(看起来放大一点)以正确调整屏幕宽度,如何正确配置媒体查询以解决此问题? the screenshots(before fingers adjustment and after) will explain more!屏幕截图(手指调整之前和之后)将解释更多!

before adjustment with fingers用手指调整前在此处输入图像描述 after adjustment with fingers用手指调整后在此处输入图像描述

this issue has been resolved, if you ever encountered a similar problem where a screen zoomed-in on mobile try this meta line by posting it on your HTML head tag!此问题已解决,如果您遇到过类似的问题,即在移动设备上放大屏幕,请尝试将此元行发布在您的 HTML head标签上!

<meta name="viewport" content="width=device-width, height=device-height,  initial-scale=1.0, user-scalable=no;user-scalable=0;"/>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM