1. The content of the overflow spill when set (set whether the object was set to display scroll bar) overflow when overflow - x horizontal content set overflow - y vertical content overflow when set the value of above three attribute is set to visible (the default), scroll, hidden, auto. 2. The scrollbar - 3 d - light - color stereo scrollbar the color of the bright side (to set the color of the scroll bar) scrollbar arrow - triangular arrow on color and button color scrollbar - base - color the basic color of the scroll bar scrollbar - dark - shadow - color stereoscopic strong shadow color of the scroll bar scrollbar - face - color stereo scroll bars protruding part of the scrollbar color highlight - scrollbar color blank portion of the scroll bar color - shadow - color stereo shadow color of the scroll bar we through several examples to explain the style attributes: 1. The browser window will never appear scroll bar no horizontal scroll bars

 


code is as follows:


<Body style="overflow - x: hidden" > No vertical scroll bar

 


code is as follows:


<Body style="overflow - y: hidden" > No scroll bar

 


code is as follows:


<Body style="overflow -x: hidden; overflow - y: hidden" > Or <Body style="overflow: hidden" > 2. Set a multi-line text box of the scroll bar no horizontal scroll bars

 


code is as follows:


<Textarea style="overflow - x: hidden" > </textarea> No vertical scroll bar

 


code is as follows:


<Textarea style="overflow - y: hidden" > </textarea> No scroll bar

 


code is as follows:


<Textarea style="overflow -x: hidden; overflow - y: hidden" > </textarea> Or <Textarea style="overflow: hidden" > </textarea> 3. To set the color of the window scroll bar Settings window scroll bar color for red <Body style=" Scrollbar - base - color: red" > Scrollbar - base - color set is the basic color, usually only need to set this attribute can achieve the goal of change scrollbar color. With a special effect:

 


code is as follows:


<Body style="scrollbar arrow - color: yellow; the scrollbar - base - color: lightsalmon" > 4. In your stylesheet file defined in a class, invoke the stylesheet

 


code is as follows:


<Style> . Coolscrollbar {scrollbar arrow - color: yellow; Scrollbar - base - color: lightsalmon; } </style> Call it like this:

 


code is as follows:


<Textarea class="coolscrollbar >" </textarea> Color and border Settings: textarea

 


code is as follows:


<The textarea style="border: red solid; border - width: 1 1 1 1; color: # CCCCCC;" > </textarea>


This concludes the body part