问题描述:

I already searched it but couldn't find exact solution for it that's why i am posting it here.

I have a problem with 2 divs, actually I have a fixed div inside a scrollable div now I want to scroll inner div along with the other div but not on the document scrollbars I have pasted the working link here if you can do it with deve mode to change with CSS or if their is need of any jquery script kindly let me know it. the link to the page which is purely HTML you can check it on

http://www.speedyrecruiter.com/problemwithdiv.html

When you click on plus button a popup div open with fixed height width top left now i want this div to b scrollable along with inner div not with outer document.

网友答案:

Make the plus a very tiny div with position:relative. Inside that div, not visible, create your popup with position:absolute instead of fixed and use negative margin to position the popup above the plus

Something like this (just a quick example, but the popup scrolls with the plus button)

http://jsfiddle.net/e6xLmp97/2/

相关阅读:
Top