Solution:
We want to force a scroll bar, but sometimes we don't want a scroll bar, so we need to hide it. From the above guidance, we can easily get the answer-set the CSS Attribute Overflow value to hidden.
Procedure:
Method 1: Set CSS overflow to hidden.
<Body style = "overflow: hidden">
Method 2: Set the scroll attribute of the Body element to No.
<Body scroll = "no">
Note:
We recommend that you use method 1 to hide the scroll bar. In method 2, you cannot use a script to scroll the page in ie5.0. Because the method only hides the scroll bar and does not display it, the method 2 is to directly set it to no scroll bar. In this example, you can set the scroll bar on the demo.htm page in the two models in the sixth chapter of this document. On ie5.0, after you use method 2 to hide the demo.htm page scroll bar, the page scroll control function will be invalid.
TIPS:
You can use overflow-X or overflow-y to hide the scroll bar either horizontally or vertically.