简体   繁体   中英

Microsoft Edge and window.resizeTo

Please, consider the following:

window.resizeTo(window.outerWidth, window.outerHeight)

Ordinarily this should not visibly do anything as you're resizing the window to its original size.

However in Microsoft Edge there is some height and width that is not included in outerWidth/outerHeight and is added to the height/width provided in resizeTo

Has anyone seen this? Is there a work around?

Double check the zoom level of your browser. Zoom does super weird things.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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