使Flex适合用户的屏幕..不管是什么屏幕大小 [英] Make Flex Fit the Users' Screen.. No matter what screen size

查看:100
本文介绍了使Flex适合用户的屏幕..不管是什么屏幕大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

制作一个Flex应用程序。只是想知道是否有人创建了自动适合用户的屏幕大小的东西,我怎么去做这件事?

原则之一是我需要一个背景图像,显然将不得不缩放/调整大小以匹配用户屏幕。



谢谢

解决方案

例如,您可以使用应用程序的百分比值。
如果应用程序的大小发生更改,也会调度resize事件。你可以听它反应。



如果你想调整文本的大小,据我所知,没有智能的解决方案,因为fontSize只接受像素价值(没有时间,%等)


Making an Flex App. Just wondering if anyone has created something that fits automatically to the users' screen size and how I go about doing this?

One of the principle things is that I need an background image, which is obviously going to have to scale / resize to match the users screen.

Thanks

解决方案

you can use percentage values for the application for example. There is also a resize-event dispatched if the size of the application changes. You can listen to it to react.

If you want to resize text regarding to the screen size, there is no smart solution as far as I know because fontSize only accepts pixel values (no em, %, etc.)

这篇关于使Flex适合用户的屏幕..不管是什么屏幕大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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