Secure the body of a page [closed]
I am currently developing a website. At html I would like to fix the body, ie it does not move the mouse scrolling .
Not sure why you want to do this, but this CSS should work.
body {
overflow:hidden;
}
Of course, you'll need to make sure that all the content is visible in the user's viewport, which is very difficult if not impossible.
I don't recommend this.
body { position:fixed; left:0; top:0; overflow:hidden; }
Add a style to the body:
<body style="position: fixed;">
</body>
精彩评论