Меню
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON PHP КАК СДЕЛАТЬ
     ❯   

CSS Справочники


CSS Свойства





overflow



Example

Show different overflow property values:

div.ex1 {
  overflow: scroll;
}

div.ex2 {
  overflow: hidden;
}

div.ex3 {
  overflow: auto;
}

div.ex4 {
  overflow: clip;
}

div.ex5 {
  overflow: visible;
}
Try it Yourself »

Definition overflow

Подработка: Перевод страницы

The overflow property specifies what should happen if content overflows an element's box.

This property specifies whether to clip content or to add scrollbars when an element's content is too big to fit in a specified area.

Note: The overflow property only works for block elements with a specified height.

Show demo ❯

Default value: visible
Inherited: no
Animatable: no. Read about animatable
Version: CSS2
JavaScript syntax: object.style.overflow="scroll" Try it

Browser Support overflow

The numbers in the table specify the first browser version that fully supports the property.

Property
overflow 1.0 4.0 1.0 1.0 7.0

Note: In OS X Lion (on Mac), scrollbars are hidden by default and only shown when being used (even though "overflow:scroll" is set).



CSS Syntax overflow

overflow: visible|hidden|clip|scroll|auto|initial|inherit;

Property Values overflow

Value Description Demo
visible The overflow is not clipped. It renders outside the element's box. This is default Demo ❯
hidden The overflow is clipped, and the rest of the content will be invisible. Content can be scrolled programmatically (e.g. by setting scrollLeft or scrollTo()) Demo ❯
clip The overflow is clipped, and the rest of the content will be invisible. Forbids scrolling, including programmatic scrolling. Demo ❯
scroll The overflow is clipped, but a scroll-bar is added to see the rest of the content Demo ❯
auto If overflow is clipped, a scroll-bar should be added to see the rest of the content Demo ❯
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit

Related Pages overflow

CSS tutorial: CSS Overflow

CSS tutorial: CSS Positioning

HTML DOM reference: overflow property



×

Связаться с отделом продаж

Если вы хотите использовать услуги schoolsw3 как образовательное учреждение, команда или предприятие, отправьте нам электронное письмо:
sales@schoolsw3.com

Сообщить об ошибке

Если вы хотите сообщить об ошибке или внести предложение, отправьте нам электронное письмо:
help@schoolsw3.com

Schoolsw3 оптимизирован для обучения и подготовки. Примеры могут быть упрощены для улучшения чтения и обучения. Учебники, ссылки и примеры постоянно проверяются, чтобы избежать ошибок, но мы не можем гарантировать полную правильность всего контента.
При использовании Schoolsw3 вы соглашаетесь прочитать и принять наши условия использования,
политику использования файлов cookie и конфиденциальности.

Авторское право 1999- © Copyright. Все права защищены. Schoolsw3 работает на SW3.CSS.