如何更改我的应用程序,以便根据屏幕大小调整大小? [英] How do i change my application so that it resizes according to the screen size?

查看:110
本文介绍了如何更改我的应用程序,以便根据屏幕大小调整大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改应用程序以便根据屏幕大小调整大小?目前,寄宿生扩大到填满屏幕,但应用程序仍然太小,无法轻松阅读。我希望它扩展到适合任何屏幕,但不能保持如此高的分辨率,文本等很小。



我尝试过:



尝试设置表单。

How do I change my application so that it resizes according to the screen size? Currently the boarders expand to fill the screen but the application stays too small to be easily read. I would like it to expand to fit whatever screen but not remain in such a high resolution that the text ect is tiny.

What I have tried:

Tried setting up a form table.

推荐答案

如果您的应用程序是Web应用程序那么你可以使用 Bootstrap [ ^ ]库
if your application is a web application then you can use Bootstrap[^] library


您没有告诉我们您的申请类型,但请查看我对该问题的评论。在这种情况下,我只能给你关于大小容忍行为的基本想法。请查看我过去的答案:

屏幕分辨率更改时,Zom Out出现故障 [ ^ ],

如何停靠按钮,以便它可以调整表格 [ ^ ];

另见 GUI Apperance - C#.Net [ ^ ]。



对于Web应用程序,si tuation有些不同;非常简单:如果你不干涉,HTML本身就是流动的;并且你可以使用不同的技术,基于阅读 window.innerWidth window.innerHeight



-SA
You did not tell us your application type, but please see my comment to the question. In this situation, I can give you only the basic idea on the "size-tolerant" behavior. Please see my past answers:
Zom Out malfunctions when Screen resolution changes[^],
how to dock button so that it can adjust with the form[^];
see also GUI Apperance — C#.Net[^].

For the Web applications, the situation is somewhat different; very briefly: HTML itself is fluid if you don't interfere; and also you can use different techniques based on reading window.innerWidth and window.innerHeight.

—SA


这篇关于如何更改我的应用程序,以便根据屏幕大小调整大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆