uniapp网页端怎么设置成手机宽度
可以在uniapp项目的index.html文件中添加如下代码:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
这样就可以将网页设置为手机宽度,同时禁止用户缩放页面。
原文地址: https://www.cveoy.top/t/topic/fgJH 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
可以在uniapp项目的index.html文件中添加如下代码:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
这样就可以将网页设置为手机宽度,同时禁止用户缩放页面。
原文地址: https://www.cveoy.top/t/topic/fgJH 著作权归作者所有。请勿转载和采集!