質問

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