Modal Dialog without jQuery

前端 未结 6 667
情书的邮戳
情书的邮戳 2020-11-30 01:29

I need to create a modal dialog on a webpage using javascript. Normally this would be easy as I could use something like jQueryUI or BlockUI, but the caveat here is that I\

6条回答
  •  执念已碎
    2020-11-30 01:53

    Using position:fixed

    and this fiddle,

    I have managed to overcome the limitations of the first answer

    getting this demo. you basically need glass div with full screen and fixed position styling and nested scrollable content div.

    You could also use document.write and then redirect to close the dialog.

提交回复
热议问题