最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

javascript - How to get this popup window style? - Stack Overflow

matteradmin4PV0评论

If you go to / and click on the green shareThis widget next to the text 'Try it out', you'll see a window pop-up.

I've noticed everyone is beginning to use a pop-up window with this style.

What's this? Is it just a div or a new browser window? How to achieve this effect?

If you go to http://www.sharethis./ and click on the green shareThis widget next to the text 'Try it out', you'll see a window pop-up.

I've noticed everyone is beginning to use a pop-up window with this style.

What's this? Is it just a div or a new browser window? How to achieve this effect?

Share Improve this question asked Jun 15, 2011 at 15:55 Water Cooler v2Water Cooler v2 33.9k63 gold badges183 silver badges365 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 5

Check out any one of these:

  • Lightbox
  • Lightbox2
  • Fancybox

I guess the popup-window is actually two divs, one which darkens the site, one for the window. Also guessing: both could use the "opacity" and "z-index" css attributes.

Post a comment

comment list (0)

  1. No comments so far