HBCMS更多的中文手册参考:

scrollbar-track-color Attribute | scrollbarTrackColor参数属性

DHTML文档教程

Sets or retrieves the color of the track element of a scroll bar.

dhtml语法

HTML { scrollbar-track-color : vColor }
Scriptingobject.style.scrollbarTrackColor [ = vColor ]

DHTML可能的值

vColorVariant that specifies or receives any color name or RGB values in the Color Table.

The property is read/write for all objects except the following, for which it is read-only: currentStyle. The property has no default value. The Microsoft Cascading Style Sheets (CSS) extension is inherited.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.

remarks

the track is the element of a scroll bar on which the scroll box can slide either up and down or left and right. the scroll box is the square box within a scroll bar that can be moved either up and down or left and right on a track to change the position of the content on the screen.

this property applies to elements that display a scroll bar. cascading style sheets (css) enable scrolling on all objects through the overflow property. these objects are not listed in the applies to list for this property.

DHTML代码范例

The following example shows how to create a style rule that sets the scrollbarTrackColor property for a textarea element.

<HTML>
<HEAD>
<STYLE>
TEXTAREA.BlueTrack  { scrollbar-track-color:blue }
</STYLE>
</HEAD>
<BODY>
<TEXTAREA CLASS="BlueTrack">The track element in the scroll bar for this
element will be blue.</TEXTAREA>
</BODY>
</HTML>

是否符合公共标准

There is no public standard that applies to this property.

Applies To

APPLET, BDO, BODY, currentStyle, CUSTOM, defaults, DIV, EMBED, OBJECT, runtimeStyle, style, TEXTAREA

更多语法参考

scrollbar3dlightcolor, scrollbararrowcolor, scrollbarbasecolor, scrollbardarkshadowcolor, scrollbarfacecolor, scrollbarhighlightcolor, scrollbarShadowColor