분류 jquerymobile

버튼 왼쪽에 이미지 배치하기

컨텐츠 정보

  • 조회 2,752 (작성일 )

본문

<!DOCTYPE html>

<html>

<head>

<script type='text/javascript'

  src='http://code.jquery.com/jquery-1.8.3.js'></script>

<script type="text/javascript"

  src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.js"></script>

<link rel="stylesheet" type="text/css"

  href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.css">

<style type='text/css'>

.ui-btn-text {

  line-height: 43px;

}

</style>

</head>

<body>

  <div data-role="page" id="main">

    <div data-role="header" data-position="fixed"

      style="position: absolute;">

      <h1>Main</h1>

    </div>

    <!-- /header -->

    <div data-role="button" onclick="someFunction()">

      <img align="left" width="35px"

        src="http://placehold.it/40x40" />Button 1

    </div>

    <div data-role="button" onclick="someFunction()">

      <img align="left" width="35px"

        src="http://placehold.it/40x40" />Button 2

    </div>

  </div>

</body>

</html>