--- title: Element.clientHeight slug: Web/API/Element/clientHeight translation_of: Web/API/Element/clientHeight ---

{{ APIRef() }}

읽기 전용 속성인 Element.clientHeight 엘리먼트의 내부 높이를 픽셀로 반환합니다. 이 내부 높이라는 것은 내부 여백(padding)을 포함하지만, 수평 스크롤바의 높이, 경계선, 또는 외부 여백(margin)은 포함하지 않습니다.

clientHeight는 CSS상의 높이 + CSS상의 내부 여백 - 수평 스크롤바의 높이(존재하는 경우에만)로  계산됩니다.

Note: 이 속성은 integer로 반올림됩니다. 소수점이 포함된 값이 필요하다면, {{ domxref("element.getBoundingClientRect()") }}을 사용하시기 바랍니다.

구문

var h = element.clientHeight;

h는 엘리먼트의 높이를 나타내는 픽셀 단위의 integer입니다.

padding-top

Gentle, individualistic and very loyal, Birman cats fall between Siamese and Persian in character. If you admire cats that are non aggressive, that enjoy being with humans and tend to be on the quiet side, you may well find that Birman cats are just the felines for you.

Image:BirmanCat.jpgAll Birmans have colorpointed features, dark coloration of the face, ears, legs and tail.

Cat image and text coming from http://www.best-cat-art.com/

padding-bottom

LeftTopRightBottommargin-topmargin-bottomborder-topborder-bottom

 

스펙 정의

스펙 상태 코멘트
{{SpecName('CSSOM View', '#dom-htmlelement-clientheight', 'clientheight')}} {{Spec2('CSSOM View')}}  

주의

clientHeight는 Internet Explorer의 객체 모델에서 소개된 속성입니다.

같이 보기