Home > front end >  Pictures follow the mouse to the screen edge of the scroll bar
Pictures follow the mouse to the screen edge of the scroll bar

Time:12-02

I use jquery to follow after a mouse image code, however, when the mouse moves to the edge of the screen pixels to generate new page size because the picture itself, can make the page are fixed and not produce new margin, to widen the body high also not line,
When the mouse on the page

When the mouse is located in the edge of the page

CodePudding user response:

Pictures did not use absolute positioning

CodePudding user response:

I write again once, so also no new mouse moved to the border will appear horizontal scroll bar

CodePudding user response:

 
Body {
Overflow - x: hidden;
}

CodePudding user response:

Beyond the hidden, overflow: hidden
  • Related