IE6 Frameset Horizontal scroll bar bug
If you want to solve this problem, you need to choose a solution that is best for you.
Programme 1:
Paste the following code in the CSS definition:
HTML {
OVERFLOW-Y: scroll;
}
This forces the default vertical scroll bar to appear, which, for some reasons, will eliminate the need for the horizontal scroll bar for IE.
Advantages:
Completely solves this problem and allows you to keep the full XHTML doctype.
Disadvantages:
Force it to appear even when the vertical scroll bar is not required. Note that you do not place it in a CSS that is associated with another page, such as the index page of the frame.
Programme 2:
Paste the following code in the CSS definition:
HTML {
Overflow-x: Hidden;
Overflow-y: auto;
}
This hides the horizontal scroll bar and sets the vertical scroll bar to appear only when necessary.
Advantages:
To solve this problem visually.
The vertical scroll bar is not forced to appear when it is not necessary.
Disadvantages:
It simply hides the horizontal scroll bar and does not really fix the problem. As a result, you may encounter the need to have a horizontal scroll bar for content that is outside the current page, but it has been forced to hide.
Programme 3:
Paste the following code in the CSS definition:
Body {
Margin-right: -15px;
Margin-bottom: -15px;
}
This adds a negative value to the horizontal and vertical direction of the margin, and when IE adds the exact value, it removes the need for the scroll bar.
Advantages:
To solve this problem visually.
Vertical scroll bars are not forced to appear.
Disadvantages:
The populated screen area cannot be used because the "man created" 15px outer margin (margin).
I used it myself and recommended the scheme one.
Forced scroll bar:
The technique of "fixing" the bug in question can also be used for other purposes. With CSS, you can effectively display or hide vertical and horizontal scroll bars in Mozilla Firefox and Internet Explorer.
Force display scroll bar:
HTML {
Overflow:scroll;
}
Force hidden scroll bars:
HTML {
Overflow:hidden;
}
Hide IE's horizontal scroll bar:
HTML {
Overflow-x: Hidden;
}
Hide IE's vertical scroll bar:
HTML {
Overflow-y: Hidden;
}
Force display of IE's horizontal scroll bar:
HTML {
Overflow-x: scroll;
}
Force display of IE's vertical scroll bar:
HTML {
OVERFLOW-Y: scroll;
}
Force display of Mozilla's horizontal scroll bar:
HTML {
Overflow:-moz-scrollbars-horizontal;
}
Note: Just force the horizontal scroll bar to appear. That is, a vertical scroll bar does not appear even if you need to display a vertical scroll bar.
Force display of Mozilla's vertical scroll bar:
HTML {
overflow:-moz-scrollbars-vertical;
}
Note: Only force the vertical scroll bar to appear. That is, the horizontal scroll bar does not appear even if you need to display a horizontal scroll bar.