CSS2 Style overflow Property

황제낙엽 2011.06.27 22:14 조회 수 : 31

sitelink1 http://www.w3schools.com/jsref/prop_style_overflow.asp 
sitelink2 http://msdn.microsoft.com/en-us/library/...s.85).aspx 
sitelink3  
sitelink4  
extra_vars5  
extra_vars6  

Definition and Usage

The overflow property sets or returns what to do with content that renders outside the element box.

Syntax

Set the overflow property:

Object.style.overflow="visible|hidden|scroll|auto|inherit"

Return the overflow property:

Object.style.overflow

ValueDescription
visibleContent is NOT clipped and may be shown outside the element box. This is default
hiddenContent outside the element box is not shown
scrollScroll bars are added, and content is clipped when necessary
autoContent is clipped and scroll bars are added when necessary
inheritThe value of the overflow property is inherited from parent element

IE 에서는 inherit 가 지원되지 않음에 주의해야 한다