이 페이지는 아직 한국어로 번역되지 않았어요. 😢
GitHub에서 한국어로 번역할 수 있도록 도와주세요
Overflow
네 가지 기본값과 클래스를 사용하여 즉시 overflow
속성을 조절합니다. 이러한 클래스는 기본적으로 반응형이 아닙니다.
This is an example of using
.overflow-auto
on an element with set width and height dimensions. By design, this content will vertically scroll.
This is an example of using
.overflow-hidden
on an element with set width and height dimensions.
This is an example of using
.overflow-visible
on an element with set width and height dimensions.
This is an example of using
.overflow-scroll
on an element with set width and height dimensions.
<div class="overflow-auto">...</div>
<div class="overflow-hidden">...</div>
<div class="overflow-visible">...</div>
<div class="overflow-scroll">...</div>
overflow-x
Adjust the overflow-x
property to affect the overflow of content horizontally.
.overflow-x-auto
example on an element with set width and height dimensions.
.overflow-x-hidden
exampleon an element with set width and height dimensions.
.overflow-x-visible
example on an element with set width and height dimensions.
.overflow-x-scroll
example on an element with set width and height dimensions.
<div class="overflow-x-auto">...</div>
<div class="overflow-x-hidden">...</div>
<div class="overflow-x-visible">...</div>
<div class="overflow-x-scroll">...</div>
overflow-y
Adjust the overflow-y
property to affect the overflow of content vertically.
.overflow-y-auto
example on an element with set width and height dimensions.
.overflow-y-hidden
example on an element with set width and height dimensions.
.overflow-y-visible
example on an element with set width and height dimensions.
.overflow-y-scroll
example on an element with set width and height dimensions.
<div class="overflow-y-auto">...</div>
<div class="overflow-y-hidden">...</div>
<div class="overflow-y-visible">...</div>
<div class="overflow-y-scroll">...</div>
Sass 변수를 사용하여 _variables.scss
에서 $overflows
변수를 변경하여 overflow 유틸리티를 사용자 정의할 수 있습니다.
CSS
Sass 유틸리티 API
Overflow 유틸리티는 scss/_utilities.scss
의 유틸리티 API에 선언되어 있습니다. Learn how to use the utilities API.
"overflow": (
property: overflow,
values: auto hidden visible scroll,
),
"overflow-x": (
property: overflow-x,
values: auto hidden visible scroll,
),
"overflow-y": (
property: overflow-y,
values: auto hidden visible scroll,
),