如何将Web应用程序的网页配置为最大化浏览?

发布于 2024-10-08 22:44:30 字数 588 浏览 0 评论 0原文

我使用 PowerBuilder V12.0 开发了一个 Web 项目,并以 ASP.net Web 文件格式 (*.aspx) 发布。

我已将我的 Web 项目托管在一台具有操作系统(Windows Server 2003 - Enterprise Edition)和 IIS V6.0 作为 Web 服务器托管应用程序的 Web 服务器计算机上。

我想让主页(Default.aspx)最大化打开,以便 Internet Explorere 或任何其他 Internet 浏览器(如 Firefox 等)中不会出现 Internet 工具栏。

看来这是一个 Web 服务器配置和设置,因为现在我在两个开发 Web 服务器中托管相同的 Web 应用程序,它在其中一个服务器中最大化打开,在另一个服务器中正常打开,因此不需要在 Web 项目文件中进行任何更改。

我不知道这个选项或配置到底是什么,在 web.config 和 machine.config 等 Web 配置文件中是否有窗口大小或宽度和高度等属性?我猜想有一个像 WindowSize:Maximized 这样的属性。

如果您以前有过这方面的经验,请让我知道执行此操作所需的选项和配置。

感谢您的帮助。

I have developed a web project using PowerBuilder V12.0 and it is published in ASP.net web file formats (*.aspx).

I have hosted my web project on a web server machine with operating system (Windows Server 2003 - Enterprise Edition) and IIS V6.0 as Web Server Hosting Application.

I would like to make the home page (Default.aspx) opened maximized so that no internet toolbars appears in the Internet Explorere or any other internet browser like Firefox and so on.

It seems this is a web server configuration and setting as now I host the same web application in two development web servers and it opens maximized in one of them and opens normal in the other so No changes are needed in the web project files.

I do not know exactly what is this option or configuration,, Is there a property like window size or width and height in web configuration files like web.config and machine.config ? I guess there is a property like WindowSize:Maximized.

If you had experience with that before please let me know the options and configurations needed to do that.

Thanks for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜光 2024-10-15 22:44:30

您可以使用 JavaScript 来调整浏览器窗口的大小,但我认为这通常是不好的形式,并且并不总是受支持。有些浏览器根本不会这样做,有些会阻止它,等等。

很确定您无法控制窗口显示的任何其他方面,例如工具栏可见性等。好吧 - 您可以在打开新的浏览器窗口时但是您可以不要在页面第一次加载时强制执行此操作。

http://www.w3schools.com/jsref/met_win_resizeto.asp

在 Chrome 中尝试过,不行,在 IE 中尝试一下,您会得到“IE 已限制此网页运行脚本...”

我可以理解为什么您想要强制执行 Web 应用程序的显示方式,但这确实是留给客户端的事情。

You can use JavaScript to resize the browser window but I think it's generally bad form and not always supported. Some browsers won't do it at all, some will block it, etc.

Pretty sure you can't control any other aspects of window display, such as toolbar visibility, etc. Well - you can when opening new browser windows but you can't enforce this on the first load of the page.

http://www.w3schools.com/jsref/met_win_resizeto.asp

Tried it in Chrome, no worky, tried it in IE, you get "IE has restricted this webpage from running scripts..."

I can see why you would want to enforce how your web app is displayed but that's something that's really left to the client.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文