调整所有大小浏览器的控件位置 [英] Adjust controls position for all size browsers

查看:156
本文介绍了调整所有大小浏览器的控件位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!我想知道我应该如何适应所有浏览器的按钮,标签,数据网格,列表框等控件?例如,我的WPF Web应用程序中有一个按钮,我已将其拖放到中心位置。如果我运行我的WPF Web应用程序,它将在中心位置显示我的按钮。但是,当我点击浏览器的恢复按钮以使我的浏览器变小时,它就不会在中心位置显示我的按钮。这意味着按钮不会通过调整浏览器的大小来调整其位置。你能告诉我我该怎么做以及如何根据浏览器的大小调整控件的位置?

Hi! I want to know how should I fit controls like button, label, datagrid, listbox for all browsers? For example I have got a button there in my WPF web application & I have draged it & placed it there in the center position. If I run my WPF web application it will show my button there in the center position. But when I click on restore down button of my browser to make my browser small then it doesnt show my button there in the center position. It means button doesnt adjust its position by resizing browser`s size. Would you please tell me what should I do & how should I adjust position of my controls with browser`s size?

推荐答案

检查我的帖子 HERE 虽然它适用于VB.NET表单应用程序,但您可以调整它以便在您的网页中使用。
Check my post HERE although it is for VB.NET forms application you shold be able to adapt it for use in your webpage.


这篇关于调整所有大小浏览器的控件位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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