Encountered a problem, is the click Link appears in the box, the contents of the box can be sliding, the results of my sliding when I found the following body also follow the slide, first look at the code.
The HTML of the Bullet box:
<Divclass= "Mask"> <Divclass= "Reserve"> <spanclass= "Close">X</span> <Divclass= "title">Title</Div> <Divclass= "Content">//A lot of content</Div> </Div></Div>
CSS for the frame:
. Mask{position:fixed;Top:0; Left:0;width:100%;Height:100%;Display:None;Z-index:990;background:rgba (0, 0, 0,. 7);}. Reserve{position:relative;width:90%;Height:80%;Z-index:999;Overflow:Auto;Border-radius:10px;margin:100px Auto;Background-color:#fff;}
This is really no problem, but the problem followed, sliding content when the body will follow the slide, the following is the solution.
Add both HTML and body
{ height: 100%; Overflow: hidden;}
This is how I solve this: When the button is clicked, the HTML and body are added with the . Ban_body so that the body does not slide along with it.
{ $ ("Html,body"). AddClass ("Ban_body") $ (". Mask"). Show (+); )
Don't forget to remove it when you close it.
Moving body with modal frame sliding problem