Basically what I'm going for is what http://pinterest.com does when you click an image on the homepage.
How would one make the page unscrollable, but the new content overlayed scrollable?
You can use the css position for the container holding the initial page and set it to fixed. This plus a fixed height will get you a page that keeps position (also, be sure to set overflow: hidden).
Then the container you want on top used fixed position also but give it a margin to make it sit in the center of the page. For this one set overflow: scroll
or overflow: auto
More information on positions can be found here with examples:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.