뒤로가기 버튼으로부터 텍스트 제거
본문
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type="text/javascript"
src="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.css">
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){
$(document).on('pagebeforeshow', function () {
$(this).find('a[data-rel=back]').buttonMarkup({
iconpos: 'notext'
});
});
});//]]>
</script>
</head>
<body>
<div id="home" data-role="page" data-add-back-btn="true">
<div data-role="header">
<h1>header</h1>
</div>
<div data-role="content">
Go to <a href="#page2">Page2</a>
</div>
</div>
<div id="page2" data-role="page" data-add-back-btn="true">
<div data-role="header">
<h1>Page 2</h1>
</div>
<div data-role="content"></div>
</div>
</body>
</html>
- 이전글ui grid에 버튼 넣기 15.05.24
- 다음글텍스트로 빈공간을 두는 방법 15.05.26