As the title says, is it possible to dynamically resize the browser according to content? I'm using jquery accordion. Each 'accordion' is of a different height/length and I'd like to have the browser window to resize to each one.

e.g.: if all the accordions are closed then the browser would be at it's smallest and then resize to the selected accordion.

有帮助吗?

解决方案

You can't resize the browser window unless you created the window with window.open(), at which point you could use window.resizeTo() or window.resizeBy(). Older browsers might have let you, but not anymore.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top