움직이는 캐릭터 예제로 클릭 이벤트 익혀보기-
467
14 asked
단순한 예제인데도 오류를 못찾겠습니다.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Interactive Web</title>
<link rel="stylesheet" href="02_02.css">
</head>
<body>
<div class="stage">
<div class="ilbuni"></div>
<div class="ilbuni"></div>
<div class="ilbuni"></div>
</div>
</body>
</html>
02_02.css
.stage {
position: relative;
width: 100vw;
height: 75vw;
background: #fff000;
}
.libuni {
position: absolute;
width: 100px;
height: 100px;
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: contain;
}
.ilbuni:nth-of-type(1) {
left: 5%;
bottom: 5%;
background-image:url('ilbuni_0.png');
}
.ilbuni:nth-of-type(2) {
left: 10%;
bottom: 3%;
background-image:url('ilbuni_1.png');
}
.ilbuni:nth-of-type(3) {
left: 7%;
bottom: 10%;
background-image:url('ilbuni_2.png');
}
같은 공간에 웹파일과 이미지 같이 넣었습니다.
도와주세요 ㅠ
Answer 3
1
안녕하세요.
시간이 많이 지나서 문제 해결하셨을것 같지만.... 클래스 명이 달라서 나오지 않는것 같아요.
libuni 를 ilbuni 로 수정해주세요.
아래와 같이 클래스명이 다릅니다.
.libuni {}
.ilbuni:nth-of-type(1) {}
왼쪽/오른쪽 동작시 딜레이 문제
0
93
1
변수 범위 관련 질문
0
106
1
perspective 문의
0
100
1
생성자 함수를 클래스 함수로 변경 하고 this 오류 관련
0
150
1
스크롤이 중간 위치에 있을 때 창의 크기를 변환하면 생기는 문제
0
127
1
animation이벤트 질문이요!
0
71
1
resize handler에서 질문이 있습니다.
0
110
1
카드 뒤집힐 때 F가 보인 이유
0
149
1
3d 뒤집기 추가효과
0
217
1
전진! 3D 스크롤 21 강의 질문
1
171
1
eventlistener 질문
0
148
1
zMove 를 1000으로 설정하는 이유에 대하여.
0
168
1
[정보-23강] ES6 class 문법으로 공부하시는 분들!! 화살표 함수로도 시도해보셔요!
1
191
1
동적으로 html 생성 후 이벤트 위임 질문 있습니다.
0
265
1
rotateY()에서 deg에 따른 차이
0
197
1
코드 작성 순서
0
275
1
이미지가 없는데 첨부파일을 다운 받는 방법이 있나요??
1
394
1
'이벤트 위임 보강 영상'에 있는 예제 html이 안 보입니다
0
265
2
섹션5 자바스크립트 이벤트 다루기 질문
1
243
1
[#전진! 3D 스크롤 11] mousePos 공식 질문 있습니다!
0
423
2
css 는 직접 작성을 해야하는걸까용?
0
325
1
translateZ 에 px 이 아닌 vw 로 값을 주신 이유가 있을가요?
0
359
2
house 부분에도 width , height 부분을 꽉 차게 주신 부분이 제가 이해한게 맞는지 궁금합니다.
0
304
2
left:-400vw 가 아닌 translateZ(100vw); 을 입력하신 이유가 궁금합니다.
0
305
2



