CSS grid-auto-rows 속성
예시
그리드의 행에 대한 기본 크기를 설정합니다.
.grid-container {
display: grid;
grid-auto-rows: 150px;
}
정의 및 사용
속성 은 grid-auto-rows
그리드 컨테이너의 행 크기를 설정합니다.
이 속성은 크기가 설정되지 않은 행에만 영향을 줍니다.
기본값: | 자동 |
---|---|
상속: | 아니요 |
애니메이션 가능: | 예. 애니메이션 가능 에 대해 읽기 |
버전: | CSS 그리드 레이아웃 모듈 레벨 1 |
자바스크립트 구문: | 개체 .style.gridAutoRows="60px" |
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
grid-auto-rows | 57 | 16 | 52 | 10 | 44 |
CSS 구문
grid-auto-rows: auto|max-content|min-content|length;
속성 값
Value | Description | Play it |
---|---|---|
auto | Default value. The size of the rows is determined by the size of the largest item in the row | |
max-content | Sets the size of each row to depend on the largest item in the row | |
min-content | Sets the size of each row to depend on the largest item in the row | |
length | Sets the size of the rows, by using a legal length value. Read about length units |
관련 페이지
CSS 튜토리얼: CSS 그리드 레이아웃
CSS 참조: grid-auto-columns 속성