반응형
질문
"http://jquerymobile.com/demos/1.2.1/docs/buttons/buttons-icons.html"처럼 data-icon을 시도해보려고 했는데 안되요.
제 코드는 다음과 같구요.
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<link href="Content/jquery.mobile-1.3.0.min.css" rel="stylesheet" type="text/css" />
<a data-role="button" href="#page1" data-icon="arrow-u" data-iconpos="left">
Button
</a>
</body>
</html>
헬프좀요 ㅠㅠ
답변
맨앞에 아래와 같이 다셔야됩니다.
<head>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
</head>
그리고 jQuery Mobile 코드는 다음과 같이 해야되요
<div data-role='page'>
<a href='#' data-role='button' data-icon='arrow-u' data-iconpos='left'>Button</a>
</div>
출처 : http://stackoverflow.com/questions/16940980/data-icons-not-displaying
'프로그래밍 > Jquery' 카테고리의 다른 글
생활코딩 jQuery 강의노트 (0) | 2016.10.23 |
---|---|
Jquery - addClass 메소드 사용법 및 설명 (0) | 2015.01.18 |
Jquery - html 메소드 사용법 (0) | 2015.01.04 |
Jquery - preventDefault() 메소드 (0) | 2015.01.03 |
Jquery - Chrome Hack : Cross-Domain 문제를 피하는 법 (0) | 2014.12.29 |
Jquery -$ajax 크로스 도메인 문제 해결 방법 (0) | 2014.12.29 |
Jquery - $.ajax() 메서드의 옵션 (0) | 2014.12.28 |
jquery - 슬라이더 효과를 사용한 이미지 전환 방법 (이미지슬라이더) (0) | 2014.12.21 |