modal image popups

2019-05-03 11:59发布

问题:

I have seen a few sites that have a thumbnail and when you click it, it enlarges the image in a modal like popup. Can anyone tell me how this is done?

Thanks!

回答1:

It is done with lightbox. There are several other scripts that do this, for example a jquery plugin.



回答2:

Jquery is an easy way to implement a modal popup. It is usually done using one of the many plugins.

  • piroBox
  • FancyBox
  • prettyPhoto
  • nyroModal
  • thickbox

The list goes on and on. You can view the top 23 here



回答3:

you should also be able to do it with ajax in .net. Here is a dialog box sample, you may be able to modify for your usage. http://www.asp.net/ajax/ajaxcontroltoolkit/samples/modalpopup/modalpopup.aspx