jQuery: How can I show an image popup onclick of the thumbnail?

前端 未结 5 1962
一整个雨季
一整个雨季 2020-11-28 19:20

In my aspx page I have a thumbnail image . When the user clicks on that image I would like a popup to show that blocks out the rest of the UI with th

相关标签:
5条回答
  • 2020-11-28 20:01

    There are a lot of jQuery plugins available for this

    Thickbox

    LightBox

    FancyBox

    FaceBox

    NyroModal

    PiroBox

    Thickbox Examples

    For a single image

    1. Create a link element ()
    2. Give the link a class attribute with a value of thickbox (class="thickbox")
    3. Provide a path in the href attribute to an image file (.jpg .jpeg .png .gif .bmp)
    0 讨论(0)
  • 2020-11-28 20:04

    I was in the same situation and found this one,

    WOWslider

    0 讨论(0)
  • 2020-11-28 20:04

    prettyPhoto is a jQuery lightbox clone. Not only does it support images, it also support for videos, flash, YouTube, iframes and ajax. It’s a full blown media lightbox

    0 讨论(0)
  • 2020-11-28 20:05

    This is the most popular (9500 stars) and light weight (20KB minify, 7.5KB minify+gzip) popup gallery I think: Magnific-Popup

    0 讨论(0)
  • 2020-11-28 20:18

    I like prettyPhoto

    prettyPhoto is a jQuery lightbox clone. Not only does it support images, it also support for videos, flash, YouTube, iframes and ajax. It’s a full blown media lightbox

    0 讨论(0)
提交回复
热议问题