Simple modal div in jQuery?

后端 未结 8 930
深忆病人
深忆病人 2020-12-07 23:30

I have tried almost all of the jQuery Modal plugins I can find on the net but they are all much to bulky for what I need. I don\'t need all the fancy features, I want to be

8条回答
  •  生来不讨喜
    2020-12-08 00:00

    You can use jQuery UI which has a dialog plugin that supports modal .. http://jqueryui.com/demos/dialog/#modal

    Alternatively you would create a div that spans the whole viewport in size, set its opacity to 50% (0.5) and also catch and stop all events to make it modal. Then display your div on top of it ..

提交回复
热议问题