make a div work as a popup

前端 未结 4 584
情话喂你
情话喂你 2021-01-28 13:57

I am designing a simple webpage. I want to display a popup window in the same page just like the image attached below.\"ente

4条回答
  •  攒了一身酷
    2021-01-28 14:07

    In a very simple way you can do it keep z-index property in css of div and do hide and show of that div based on actions use this http://jsfiddle.net/b68Xb/327/

    
    
    LIGHTBOX EXAMPLE
    
    

     
           

    This is the main content. To display a lightbox click here

    This is the lightbox content. Close

提交回复
热议问题