jQuery shouldn’t be required. You could try adding the CSS:
body {overflow-y:scroll;}
This works across the latest browsers, even IE6.
More Related Contents:
- Why do browsers match CSS selectors from right to left?
- css ‘pointer-events’ property alternative for IE
- What is use of ‘initial’ value in CSS?
- Browser Caching of CSS files
- issue with CSS media queries(scrollbar)
- How to disable CSS in Browser for testing purposes
- Force browsers to load CSS before showing the page
- How do I make Firefox auto-refresh on file change?
- Is there a way to tell browsers to honor the jpeg exif orientation?
- Which browsers support data URIs and since which version?
- Setting max-height for table cell contents
- How to get rid of x and up/down arrow elements of a input date?
- IE7 CSS Scrolling Div Bug
- click link below a higher z-index div [duplicate]
- Is it possible to hide the title from a link with CSS?
- Img’s max-height not respecting parent’s dimensions
- backdrop-filter not working for nested elements in Chrome
- HTML CSS Invisible Button
- display: flex not working on Internet Explorer [duplicate]
- Zoom changes the design layout
- CSS After Element to insert mailto link?
- Pseudo element not full container width when border used
- Setting the image `width: 0` hides it, while `width: 0%` makes it occupy the space, too
- Fitting child into parent
- CSS background image on top of
- The difference between HTML media queries and CSS media queries
- css divide width 100% to 3 column
- CSS column breaks?
- How can I remove the border around an image without a source?
- What’s the difference between the HTML width / height attribute and the CSS width / height property on the img element?