Home >Web Front-end >HTML Tutorial >Overflow processing application of HTML tags_HTML/Xhtml_Web page production
Use CSS to decorate scroll bars
1. Overflow Settings when content overflows
overflow-x Settings when horizontal content overflows
overflow-y Settings when vertical content overflows
The values set by the above three attributes are visible (default value ), scroll, hidden, auto.
2. scrollbar-3d-light-color The color of the bright edge of the three-dimensional scroll bar
scrollbar-arrow-colorThe color of the triangular arrows on the up and down buttons
scrollbar-base-colorThe basic color of the scroll bar
scrollbar-dark-shadow -color The color of the strong shadow of the three-dimensional scroll bar
scrollbar-face-color The color of the protruding part of the three-dimensional scroll bar
scrollbar-highlight-color The color of the blank part of the scroll bar
scrollbar-shadow-color The three-dimensional scroll bar Shadow color
The values set by the above seven attributes are all color values, and various expressions defined by the style sheet can be used.
Using the above style definition content, we can specify whether the scroll bar of the browser window and multi-line text box is displayed and the color style. The first set of style attributes is used to set whether the set object is displayed. Scroll bar, the second set of style attributes is used to set the color of the scroll bar. It should be noted that the style attributes involved in this article are only supported by IE. The second set of style attributes can only be supported by IE5.5 version, so please Pay attention when debugging.
We explain the above style attributes through several examples:
1. Let the browser window never have scroll bars
No horizontal scroll bars