Home >Web Front-end >HTML Tutorial >html scroll bar textarea attribute setting_HTML/Xhtml_web page production

html scroll bar textarea attribute setting_HTML/Xhtml_web page production

WBOY
WBOYOriginal
2016-05-16 16:40:352205browse
1. Overflow Settings when the content overflows (setting whether the set object displays scroll bars)
overflow-x Settings when the horizontal content overflows
overflow-y Settings when the vertical content overflows
The values ​​set for the above three attributes are visible (default value), scroll, hidden, and auto.
2. scrollbar-3d-light-color The color of the bright edge of the three-dimensional scroll bar (set the color of the scroll bar)
scrollbar-arrow-color The color of the triangular arrows on the up and down buttons
scrollbar-base-color of the scroll bar Basic color
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 color of the three-dimensional scroll bar shadow
We will explain the above style attributes through several examples:
1. Let the scroll bar never appear in the browser window
No horizontal scroll bar

Copy code
The code is as follows:



No vertical scroll bar

Copy code
The code is as follows:



No scroll bar

Copy code
The code is as follows:

or

2. Set the scroll bar of the multi-line text box
No horizontal scroll bar

Copy code
The code is as follows: