如何在屏幕中央显示我的Web应用程序? [英] How to show my Web Application at the center of the screen?

查看:70
本文介绍了如何在屏幕中央显示我的Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个Web应用程序.
我想要的是应该将其显示在屏幕的中央,即在提高分辨率时,其两侧的边距应相等.

I have built a web Application.
What I want is that it should be shown at the center of the screen,ie. on increasing resolution its margins on both sides should be equal.

Can you please help.

推荐答案

您可以使用css定义这种样式,并将其应用于围绕页面内容的div.

有关css定义的更多信息,请参见:
http://www.thesitewizard.com/css/center-div-block.shtml [ ^ ]

..以及更多信息:
http://www.beansoftware.com/HTML-CSS-FAQ/Center-DIV- Tag.aspx [ ^ ]

祝你好运!
You can use css do define such a style and apply this to a div that surrounds your page content.

More info about the css definition can be found here:
http://www.thesitewizard.com/css/center-div-block.shtml[^]

..and some more info:
http://www.beansoftware.com/HTML-CSS-FAQ/Center-DIV-Tag.aspx[^]

Good luck!


这篇关于如何在屏幕中央显示我的Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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