[css] background-image no-repeat fixed 안드로이드에서 고정하는법 있을까요?

조회수 1156회

div.backImage{ background: url(../myimage.jpg) no-repeat center center fixed; height: 100vh; width: 100vw; background-size: auto 100%; background-position: center center; margin: 0px; padding: 0px; }

div안에 background이미지를 설정해서 넣었습니다. 웹에서는 기똥차게 잘되는데 모바일에서는 고정이 안되네요.

stackoverflow에서 예제보면 html body에넣는것은 저도되는데, 제가 하려는게 "<디브 이미지설정 fixed>" "</디브>" "<디브 이미지 설정 fixed>" "</디브>" 이런식으로 위 아래 이미지 고정을 하고싶거든요? 아래는 stackoverflow에서 나온건데 body에 박혀서 추가 이미지가 안되서요.. 답변 부탁드립니다!!

body:before { content: ""; display: block; position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: -10; background: url(photos/2452.jpg) no-repeat center center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }

  • (•́ ✖ •̀)
    알 수 없는 사용자

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

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)