如何根据asp.net(C#)中的屏幕设置网页 [英] How to Set web page according to screen in asp.net(C#)

查看:114
本文介绍了如何根据asp.net(C#)中的屏幕设置网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何根据asp.net(C#)中的屏幕设置网页
我正在使用Web应用程序
(我希望我的控件根据屏幕自动调整大小).

How to Set web page according to screen in asp.net(C#)
I m Working with Web Application
(I want my controls auto resize according to screen )

推荐答案

使用流畅的布局.网路上有很多例子,只需将其Google(CSS Fluid布局)即可.

即:

http://coding.smashingmagazine.com/2009/06/02/fixed-vs-fluid-vs-elastic-layout-whats-the-right-one-for-you/ [
Use fluid layout. There are a lot of exemple on web, just google it (CSS Fluid layout).

i.e. :

http://coding.smashingmagazine.com/2009/06/02/fixed-vs-fluid-vs-elastic-layout-whats-the-right-one-for-you/[^]


您应该将网页设计为与大小无关,并尽可能做到最大.通常,这意味着在页面中间具有一个内容区域,该内容区域的宽度不是固定的,并且可以扩展以填充可用空间.您可以通过将内容仅流入< div>并将其他部分(例如navbar)设置为float = left/right来实现.
You should design your web page to be size-independent, to the highest possible degree. That generally means having a content region in the middle of the page which is not fixed width, and which expands to fill the available space. You can do this by just flowing content into a <div>, and have the other parts (e.g. navbar) set to float=left/right.


这篇关于如何根据asp.net(C#)中的屏幕设置网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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