调整所有大小浏览器的控件位置

编程入门 行业动态 更新时间:2024-10-24 18:21:45
本文介绍了调整所有大小浏览器的控件位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨!我想知道我应该如何适应所有浏览器的按钮,标签,数据网格,列表框等控件?例如,我的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.

更多推荐

调整所有大小浏览器的控件位置

本文发布于:2023-10-08 01:52:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1471172.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   浏览器   大小   位置

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!