EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

scroll attribute | scroll property

Sets or gets a value that indicates whether the scroll bars are turned on or off.

Syntax

HTML<element scroll="p" ... >
JavaScript

p = object.scroll

Property values

Type: String

one of the following values.

yes

Default. Scroll bars are turned on.

no

Scroll bars are turned off.

auto

Scroll bars are shown when the page content exceeds the client area.

Remarks

With Microsoft Internet Explorer 6 and later, when you use the !DOCTYPE declaration to specify standards-compliant mode, this attribute applies to the HTML element. When standards-compliant mode is not specified, as with earlier versions of Windows Internet Explorer, this attribute applies to the BODY element, not the HTML element.

See also

body
html
CSS Enhancements in Internet Explorer 6

 

 

표시:
© 2014 Microsoft