6. 아이콘 사용
페이지 정보
작성자 관리자 댓글 0건 조회 1,273회 작성일 22-01-09 23:02본문
6. 아이콘 사용
실습 : jMobile05.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>제이쿼리 모바일 연습</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script type="text/javascript">
</script>
</head>
<body>
<div data-role="page">
<div data-role="header" data-position="fixed">
<h1>레이아웃</h1>
</div>
<div role="main" class="ui-content">
<div class="ui-grid-d">
<div class="ui-block-a"><button class="ui-btn ui-icon-action ui-btn-icon-notext ui-btn-inline"></button></div>
<div class="ui-block-b"><button class="ui-btn ui-icon-heart ui-btn-icon-notext ui-btn-inline"></button></div>
<div class="ui-block-c"><button class="ui-btn ui-icon-check ui-btn-icon-notext ui-btn-inline"></button></div>
<div class="ui-block-d"><button class="ui-btn ui-icon-clock ui-btn-icon-notext ui-btn-inline"></button></div>
<div class="ui-block-e"><button class="ui-btn ui-icon-lock ui-btn-icon-notext ui-btn-inline"></button></div>
</div>
<div class="ui-nodisc-icon">
<button class="ui-btn ui-icon-heart ui-btn-icon-notext ui-btn-inline"></button>
<button class="ui-btn ui-shadow ui-icon-heart ui-btn-icon-notext ui-btn-inline"></button>
<button class="ui-btn ui-icon-heart ui-corner-all ui-btn-icon-notext ui-btn-inline"></button>
<button class="ui-btn ui-icon-heart ui-shadow ui-corner-all ui-btn-icon-notext ui-btn-inline"></button>
</div>
<div class="ui-alt-icon">
<button class="ui-btn ui-icon-heart ui-btn-icon-notext ui-btn-inline"></button>
<button class="ui-btn ui-shadow ui-icon-heart ui-btn-icon-notext ui-btn-inline"></button>
<button class="ui-btn ui-icon-heart ui-corner-all ui-btn-icon-notext ui-btn-inline"></button>
<button class="ui-btn ui-icon-heart ui-shadow ui-corner-all ui-btn-icon-notext ui-btn-inline"></button>
</div>
<div class="ui-alt-icon ui-nodisc-icon">
<button class="ui-btn ui-icon-heart ui-btn-icon-notext ui-btn-inline"></button>
<button class="ui-btn ui-shadow ui-icon-heart ui-btn-icon-notext ui-btn-inline"></button>
<button class="ui-btn ui-icon-heart ui-corner-all ui-btn-icon-notext ui-btn-inline"></button>
<button class="ui-btn ui-icon-heart ui-shadow ui-corner-all ui-btn-icon-notext ui-btn-inline"></button>
</div>
<div data-role="footer" data-position="fixed">
<h1>powered by jQueryMobile.com</h1>
</div>
</div>
</body>
</html>
사용자 정의 아이콘 사용하기
실습 : jMobile05.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>제이쿼리 모바일 연습</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<style type="text/css">
.ui-icon-my:after{
background-image:url("./a.png");
background-size:100% 100%;
}
</style>
</head>
<body>
<div data-role="page">
<div data-role="header" data-position="fixed">
<h1>레이아웃</h1>
</div>
<div role="main" class="ui-content">
<button data-icon="my" ></button>
<div data-role="footer" data-position="fixed">
<h1>powered by jQueryMobile.com</h1>
</div>
</div>
</body>
</html>
아이콘이미지(a.png)파일을 같은 폴더에 업로드한다.
댓글목록
등록된 댓글이 없습니다.