GIF(Graphics Interchange Format) :
JPG/JPEG (Joint Photographic Expert Group image):
PNG (Portable Network Graphics) :
SVG (Scalable Vector Graphics) :
WebP (Web Picture Format) :
AVIF (AV1 Image File Format) :
간단하게 만들 수 있음
img {
width: 100%
max-width: 100%
}
background: url("http://image-Path.com/img") center /cover no-repeat;
.cont-video {
position: relative;
padding-top: 56.25%;
/* 많은 개발자들이 잘 모르는 CSS 매직을 알려드리겠습니다 :) */
/* padding-top, padding-bottom 속성의 % 값은 부모 요소의 너비에 비례합니다. */
/* 예를 들어 부모의 넚이가 1200px 이라면 padding-top=50% 의 값은 600px 과 같습니다. */
}
.video-next-level {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
all
: 모든 장치를 대상으로 적용print
: 인쇄 결과물 및 출력 미리보기 화면에 표시하는 경우screen
: 모니터나 스크린이 있는 디바이스를 의미webkit-min-device-pixel-ratio
,webkit-max-device-pixel-ratio
출력 장치의 최소, 최대 픽셀 비율.
css의 1px 안에 들어가는 디바이스의 스크린 픽셀의 숫자를 값, 레티나 디스플레이 처리 시 많이 사용
min-width, max-width
스크롤바를 포함한 뷰포트의 최소, 최대 넓이
orientation
뷰포트의 방향