开发者

Resizing of page when jquery dialog opens causes scrollbars on the page

开发者 https://www.devze.com 2023-02-24 22:50 出处:网络
I am using JQuery dialog to display开发者_开发问答 dialog box on my page. When i click on button JQuery Dialog pops up but it enables browsers scrollbars too. My default page does not show scrollbars

I am using JQuery dialog to display开发者_开发问答 dialog box on my page. When i click on button JQuery Dialog pops up but it enables browsers scrollbars too. My default page does not show scrollbars it shows only when JQuery dialog opens. Do i need to set any dialog property to disable web page resizing when showing dialog in order to avoid showing scrollbars when JQuery Dialog opens?


Sounds like your dialog is bigger than the browser window.

Does it matter that scrollbars appear?

You could use the CCS3 property

 html {overflow-y: scroll;}

To always show the scrollbar so the page doesn't jump about.

0

精彩评论

暂无评论...
验证码 换一张
取 消