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

로딩아이콘 svg가 익스플로러에서 안되는 이유는...ㅠ 채택완료

JinyeongJang 7년 전 조회 3,674

홈페이지에 로딩아이콘을 올리려고 svg 파일을 다운 받았습니다. 

크롬에서는 정상적으로 나오는데, 익스플로러에서는 뜨긴뜨는데 움직이지 않네요. 검색해보면, svg는 익스플러로 9.0이상에서는 지원된다고 봤는데.. 왜 안되는지 잘모르겠네요. 제 익스플로러 버전은 11.0입니다. 엣지에서도 마찬가지로 안보입니다. 조언을 좀 부탁드립니다ㅠ

 

</p>

<p><!DOCTYPE html>

<html>

<head<span style="color:#0000cd">>로딩아이콘 테스트</span>

</head>

<body>



<span style="color:#0000cd; font-family:Consolas,courier new"><div style="background:gray;"></span></p>

<blockquote>
<p><span style="color:#0000cd; font-family:Consolas,courier new"><svg class="lds-spinner" width="200px"  height="200px"  xmlns="<a href="http://www.w3.org/2000/svg"" target="_blank" rel="noopener noreferrer">http://www.w3.org/2000/svg"</a> xmlns:xlink="<a href="http://www.w3.org/1999/xlink"" target="_blank" rel="noopener noreferrer">http://www.w3.org/1999/xlink"</a> viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="background: none;"><g transform="rotate(0 50 50)"></span></p>

<p>      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff"></p>

<p>        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.9166666666666666s" repeatCount="indefinite"></animate></p>

<p>      </rect></p>

<p>    </g><g transform="rotate(30 50 50)"></p>

<p>      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff"></p>

<p>        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.8333333333333334s" repeatCount="indefinite"></animate></p>

<p>      </rect></p>

<p>    </g><g transform="rotate(60 50 50)"></p>

<p>      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff"></p>

<p>        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.75s" repeatCount="indefinite"></animate></p>

<p>      </rect></p>

<p>    </g><g transform="rotate(90 50 50)"></p>

<p>      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff"></p>

<p>        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.6666666666666666s" repeatCount="indefinite"></animate></p>

<p>      </rect></p>

<p>    </g><g transform="rotate(120 50 50)"></p>

<p>      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff"></p>

<p>        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.5833333333333334s" repeatCount="indefinite"></animate></p>

<p>      </rect></p>

<p>    </g><g transform="rotate(150 50 50)"></p>

<p>      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff"></p>

<p>        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.5s" repeatCount="indefinite"></animate></p>

<p>      </rect></p>

<p>    </g><g transform="rotate(180 50 50)"></p>

<p>      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff"></p>

<p>        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.4166666666666667s" repeatCount="indefinite"></animate></p>

<p>      </rect></p>

<p>    </g><g transform="rotate(210 50 50)"></p>

<p>      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff"></p>

<p>        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.3333333333333333s" repeatCount="indefinite"></animate></p>

<p>      </rect></p>

<p>    </g><g transform="rotate(240 50 50)"></p>

<p>      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff"></p>

<p>        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.25s" repeatCount="indefinite"></animate></p>

<p>      </rect></p>

<p>    </g><g transform="rotate(270 50 50)"></p>

<p>      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff"></p>

<p>        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.16666666666666666s" repeatCount="indefinite"></animate></p>

<p>      </rect></p>

<p>    </g><g transform="rotate(300 50 50)"></p>

<p>      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff"></p>

<p>        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="-0.08333333333333333s" repeatCount="indefinite"></animate></p>

<p>      </rect></p>

<p>    </g><g transform="rotate(330 50 50)"></p>

<p>      <rect x="47" y="24" rx="9.4" ry="4.8" width="6" height="12" fill="#ffffff"></p>

<p>        <animate attributeName="opacity" values="1;0" times="0;1" dur="1s" begin="0s" repeatCount="indefinite"></animate></p>

<p>      </rect></p>

<p>    </g></svg></p>
</blockquote>

<p><span style="color:#0000cd; font-family:Consolas,courier new"></div></span>



</body>

</html></p>

<p> </p>

<p> </p>

<p>

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

답변 1개

채택된 답변
+20 포인트
D
7년 전

크로스브라우징 힘든 작업이죠 ㅠㅠ

제 컴에선 문제없이 동작되는데 (익스11),

다른 환경의 같은 익스11 버전의 컴인데 안된다고 연락이와서,

저는 keyframe 이용해서 움직이게 만들었습니다.

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

답변에 대한 댓글 3개

J
JinyeongJang
7년 전
키프레임으로 한다는 건 css로 하는건가요?
D
DSLOVE
7년 전
네 맞습니다!
css 에서 해당 class 에 animation 이름 지정해주고, @keyframes animation명 { } 으로 똑같이 만드실 수 있습니다.
자세한건 구글검색해보시면 사용법 자세히 있습니다 ^^
J
JinyeongJang
7년 전
그렇군요. 감사합니다.

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

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

로그인