简体   繁体   English

如何使用浏览器窗口大小调整aspx网页?

[英]How to make aspx web pages to adjust with browser window size?

I have old version of Microsoft Visual Studio.NET (2003) on Windows Server 2003. 我在Windows Server 2003上有旧版本的Microsoft Visual Studio.NET(2003)。
I have to manage a Pre-developed database pages. 我必须管理预先开发的数据库页面。 The pages (.aspx) seem to be static and not adjust web page size as per window size of browser and remains aligned towards left. 页面(.aspx)似乎是静态的,不会根据浏览器的窗口大小调整网页大小,并保持向左对齐。 This looks old fashioned. 这看起来很古老。
How can I improve the page by making its size and alignment flexible? 如何通过使页面大小和对齐灵活来改进页面?
(Note: Unfortunately I can not upgrade any of OS or VS.NET) (注意:遗憾的是我无法升级任何OS或VS.NET)

you can achieve this by using CSS & You need to apply the css in pecentage and not in pixels then it will be compatible with any browser and also with the mobile. 你可以通过使用CSS来实现这一点你需要在pcent中应用css而不是像素,那么它将与任何浏览器以及移动设备兼容。 you will not have to scroll to left or right after applying the proper CSS. 在应用适当的CSS之后,您不必向左或向右滚动。

But to achieve this you need to apply proper css to your webpage. 但要实现这一点,您需要将适当的CSS应用到您的网页。

I hope this will solve your problem. 我希望这能解决你的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM