-
#img{
background-
size
: cover;
/* 가로크기 기준으로 가로, 세로 비율 맞춤 */
background-
size
: contain;
/* 세로크기 기준으로 가로, 세로 비율 맞춤 */
}
/* ie8 대응 필터 */
#img{
filter:
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img.jpg', sizingMethod='scale')"
;
-ms-filter:
"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img.jpg', sizingMethod='scale')"
;
}
style="
width
:
296px
;
height
:
152px
;
background-image
:
url
(
'장나라'
);
-ms-behavior:
url
(
'/css/backgroundsize.min.htc'
);
background-
size
:cover;
background-repeat
:
no-repeat
;"
※ 참고 사이트 : https://github.com/louisremi/background-size-polyfill <- 다운로드
-