调整Web窗体的大小以及窗口大小 [英] to resize the webform along with the window size

查看:287
本文介绍了调整Web窗体的大小以及窗口大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想随窗口大小调整Web表单的大小,即,当我减小或增加窗口的大小时,Web表单的大小也应相应地更改.任何建议请帮忙.

Hi,I want to resize the webform along with the window size, i.e., when i decrease or increase the size of the window the size of the webform should also change accordingly.Any suggestions please help.

推荐答案

由HTML内容决定,一如既往.

如果您处于FlowLayout模式,则可以通过点击
使页面更长 [ENTER]并在现有内容下方添加更多内容.如果你想
扩大范围,只需在点击[ENTER]之前向每个行"添加更多内容.在
此模式下,您只需切换到HTML视图并查看其中的内容

然后从那里去.

如果您处于GridLayoutMode,则将控件放置在页面上
要他们.如果您想将它们向右移,只需将它们拖过
右边距让他们走. VS.NET然后将允许您滚动到
看见.如果要在页面下移,请将其拖到底部下方
页面的页边距.在这种模式下,您也可以切换到HTML
由于
,可以手动查看和更改控件的定位坐标 您要做的就是使用绝对定位(CSS 2.0).

It is determined by the HTML content as it always has been.

If you are in FlowLayout mode, then you make your page longer by hitting
[ENTER] and adding more content below what you have already. If you want to
go wider, just add more content to each "line" before you hit [ENTER]. In
this mode, you can just switch to HTML view and look at what content is in
what

and go from there.

If you are in GridLayoutMode, then you place controls on the page where you
want them. If you want them further to the right, just drag them past the
right margin and let them go. VS.NET will then allow you to scroll over to
see it. If you want it further down the page, drag it beyond the bottom
margin of the page. In this mode, you can also, just switch over to HTML
view and change the positioning coordinates of the controls manually, since
all you are doing is using Absolute Positioning (CSS 2.0).


这篇关于调整Web窗体的大小以及窗口大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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