분류 jquerymobile

버튼이 활성화된 배경 변경하기

컨텐츠 정보

  • 조회 2,691 (작성일 )

본문

<!DOCTYPE html>

<html>

<head>

<script type='text/javascript' src='/js/lib/mootools-core-1.3.2.js'></script>

<style type='text/css'>

.ui-btn-active {

  background: #EEE !important;

}

</style>

<link rel="stylesheet"

  href="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.css" />

<script src="http://code.jquery.com/jquery-1.6.1.min.js"></script>

<script

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

</head>

<body>

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

    <div data-role="header" data-theme="b">

      <h1>Test</h1>

    </div>

    <div data-role="content" data-theme="d">

      <div data-role="navbar" data-theme="d">

        <ul>

          <li><a href="#" data-icon="custom" class="ui-btn-active">Home</a></li>

          <li><a href="#" data-icon="grid">Second page</a></li>

          <li><a href="#" data-icon="star">Third page</a></li>

        </ul>

      </div>

    </div>

  </div>

</body>

</html>