테스트 사이트 - 개발 중인 베타 버전입니다

반응형 - 이미지 좌우 같이 줄어들게 채택완료

besin 5년 전 조회 2,172

안녕하세요

반응형 홈페이지인대

 

메인 화면의 배너가 이미지가   pc 에서  모방일로 바뀔때

세로 이미지 크기는 그대로인대 가로 좌우 이미지만 잘리게 되어있어요

이미지가 전체가 그대로 작아지게 하려면 어떻게 해야되나요?

 

 

/* #home 배너 */

#home:after{display:block;clear:both;content:"";} .home_section {height:100%;padding:350px 0 200px 0;overflow:hidden;} .background_bg, .backstretch{position:absolute;top:0;bottom:0;left:0;right:0;height:100%;width:100%;background: url("../img/bg.jpg") center center no-repeat; background-image:100%; !important;-webkit-background-size: cover;-moz-background-size: cover;background-size: cover;-o-background-size: cover;} .home_section .container {height: 100%;} .home_content {position:relative;display:table;height:100%;width:100%;overflow: hidden;} .title {font-size:40px;line-height:50px;color:#fff;font-weight:600;margin:20px 0} .description {margin-bottom: 30px;font-size: 18px;line-height: 30px;color: #fff;}

 

 

 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
상한1
5년 전

height 값을 vw로 줘보세요 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인