javascript“resizeTo"功能在 Chrome 和 Opera 中不起作用 [英] The javascript "resizeTo" function not working in Chrome and Opera

查看:26
本文介绍了javascript“resizeTo"功能在 Chrome 和 Opera 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

resizeTo(允许设置新的高度/宽度值)函数在 Firefox 和 Internet Explorer 上运行良好,但在 Chrome 和 Opera 上根本不起作用.

The resizeTo (that allows setting a new height/width value) function works great on Firefox and Internet Explorer and doesn't work at all on Chrome and Opera.

是否还有其他功能可以在所有浏览器上执行相同操作?

Is there another function that does the same and works on all the browsers?

谢谢,

问候

推荐答案

不,没有其他功能.

resizeTo 方法在几个浏览器中默认是禁用的,我知道它也可以在 Firefox 中手动禁用.

The resizeTo method is disabled by default in several browsers, and I know that it can also be manually disabled in Firefox.

它已被广泛滥用,因此大多数浏览器供应商认为应该禁用它,或者至少是用户可控的选项.

It has been widely misused, so most browser vendors feel that it should be disabled, or at least a user controllable option.

这篇关于javascript“resizeTo"功能在 Chrome 和 Opera 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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