--- title: height slug: conflicting/Web/CSS/@viewport tags: - '@viewport' - CSS - CSS Descriptor - Reference translation_of: Web/CSS/@viewport translation_of_original: Web/CSS/@viewport/height original_slug: Web/CSS/@viewport/height ---
height
CSS 서술자(descriptor)는 뷰포트의 {{cssxref("@viewport/min-height", "min-height")}} 및 {{cssxref("@viewport/max-height", "max-height")}} 둘 다 설정하기 위한 단축(shorthand) 설명자입니다. 뷰포트 길이 값 하나를 주어 최소 높이 및 최대 높이 둘 다를 주어진 값으로 설정합니다.
뷰포트 값이 두 개 주어진 경우, 첫 번째 값은 최소 높이로 두 번째 값은 최대 높이로 설정합니다.
{{cssinfo}}
/* 한 값 */ height: auto; height: 320px; height: 15em; /* 두 값 */ height: 320px 200px;
auto
<length>
<percentage>
{{csssyntax}}
@viewport { height: 500px; }
명세 | 상태 | 설명 |
---|---|---|
{{SpecName('CSS3 Device', '#descdef-viewport-height', '"height" descriptor')}} | {{Spec2('CSS3 Device')}} | 초기 정의 |
{{Compat("css.at-rules.viewport.height")}}