力最大化窗口? [英] force maximised window?

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

问题描述

您好,


我可以使用JavaScript来强制最大化窗口吗?

谢谢

Hello,

Can I use JavaScript to force a maximised window ?
Thanks

推荐答案

我没试过这个,但也许:


window.resizeTo(window.screen.availWidth,window.screen.availHeight);


或者可能


window.resizeTo(window.screen.width,window.screen.height);


如果有的话,请查看窗口和屏幕对象

i haven''t tried this, but maybe:

window.resizeTo(window.screen.availWidth, window.screen.availHeight);

or possibly

window.resizeTo(window.screen.width, window.screen.height);

If anything, check out the window and screen objects


Geoff Cox写道:
Geoff Cox wrote:
你好,

我可以使用JavaScript来强制最大化窗口吗?
Hello,

Can I use JavaScript to force a maximised window ?




No.

http://webtips.dan.info/force.html


斯图尔特。


-

-----开始GEEK代码块-----

版本:3.1

GCS / M d- s: - C ++ @ a-> --- UB @ P + LE @ W ++ @ N +++ o K- @ w ++ @ O? M V? PS-

PE- Y? PGP-t-5? X? R b DI? DG e ++> ++++ h-- r--!y

------结束GEEK代码块------


我的电子邮件有效但不是我的主邮箱。请保持对每个人都可能受益的小组的回复。



No.

http://webtips.dan.info/force.html

Stewart.

--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:- C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS-
PE- Y? PGP- t- 5? X? R b DI? D G e++>++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox. Please keep replies on
the ''group where everyone may benefit.


2005年11月2日星期三19:08:57 +0000,斯图尔特戈登

< sm ******* @ yahoo.com>写道:
On Wed, 02 Nov 2005 19:08:57 +0000, Stewart Gordon
<sm*******@yahoo.com> wrote:
Geoff Cox写道:
Geoff Cox wrote:
你好,

我可以使用JavaScript强制最大化窗口吗?
Hello,

Can I use JavaScript to force a maximised window ?



没有。

http: //webtips.dan.info/force.html




斯图尔特,


我接受这会通常不是一个好主意,但我会用它为少数人使用它可能会改善

的情况。


或许使用它的原因是我有一个带有

指针的滑块。如果用户以最小化窗口开始,然后最大化

,则指针图像保持原样,因此最大化窗口位于错误的

位置...


干杯


Geoff



Stewart,

I accept that this would not normally be a good idea but I would be
using it for a small number of people for whom it might improve the
situation.

The reason for perhaps using it is that I have a slider with a
pointer. If the user starts with a minimised window and then maximises
it, the pointer image stays where it is and is thus in the wrong
position for the maximised window...

Cheers

Geoff


这篇关于力最大化窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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