开发者

Secure the body of a page [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it c开发者_如何学运维an be reopened, visit the help center. Closed 10 years ago.

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜