`
sillycat
  • 浏览: 2539150 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Mobile Jquery(II) Jquery mobile what can it do for you

阅读更多
Mobile Jquery(II) Jquery mobile what can it do for you

1. transition type
<li><a href="./speakers.html" data-transition="flip">Speakers</a></li>

There are 6 types:
slide              Slide right to left (left to right if tapping the Back button). This is the default.
slideup
slidedown
pop               Expand the new page (contract it if tapping the Back button). Great for dialogs and popups.
flip                Flip the old page out and the new page in, like flipping a card.
fade              Fade the new page in (fade it out if tapping the Back button).

2. data role type: button
<p><a href="./schedule.html" data-role="button">Button</a></p>

3. Collapsible content blocks
<div data-role="collapsible" data-state="collapsed">
      <h2>About this demo</h2>
      <p>This app rocks!</p>
      <p>This is the 3 line</p>
      <p>This is the 4 line</p>
</div>

4. Touch-optimized form elements
<form action="#" method="get">
</form>

just a form in content page.

text
<div data-role="fieldcontain">
       <label for="name">Your Name:</label>
       <input type="text" name="name" id="name" value=""  />
</div>

checkbox
<div data-role="controlgroup">
       <legend>Which Companies would you like?</legend>
       <input type="checkbox" name="company" id="handsome" class="custom" />
       <label for="handsome">Handsome</label>
      
       <input type="checkbox" name="company" id="ghca" class="custom" />
       <label for="ghca">GH-CA</label>
      
       <input type="checkbox" name="company" id="enrising" class="custom" />
       <label for="enrising">Enrising</label>
</div>

range
<div data-role="fieldcontain">
       <label for="quantity">Number of Items:</label>
       <input type="range" name="quantity" id="quantity" value="1" min="1" max="10"  />
</div>

select-slider
<div data-role="fieldcontain">
       <label for="gender">Gender:</label>
        <select name="gender" id="gender" data-role="slider">
          <option value="Man">Man</option>
          <option value="Woman">Woman</option>
        </select>
</div>

select-box
<div data-role="fieldcontain">
       <label for="shippingDate">Shipping Date:</label>
        <select name="shippingDate" id="shippingDate" data-native-menu="false">
<option value="standard">Standard: 7 day</option>
<option value="rush">Rush: 3 days</option>
<option value="express">Express: next day</option>
<option value="overnight">Overnight</option>
        </select>
</div>

submit-button
<div class="ui-body ui-body-b">
      <fieldset class="ui-grid-a">
        <div class="ui-block-a">
        <button type="submit" data-theme="d">Cancel</button>
        </div>
        <div class="ui-block-b">
        <button type="submit" data-theme="a">Order Ice Cream</button>
        </div>    
      </fieldset>
</div>

5. List views: Lists on steroids
List view with filter
<ul data-role="listview" data-inset="true" data-filter="true">
<li>
    <a href="#">The Grapes of Wrath</a>
        <a href="#">Buy This Book</a>
    </li>
    <li>
        <a href="#">The Trial</a>
        <a href="#">Buy This Book</a>
    </li>
    <li>
        <a href="#">A Tale of Two Cities</a>
        <a href="#">Buy This Book</a>
    </li>     
</ul>

listview with count
<ul data-role="listview" data-inset="true">
      <li><a href="#">SuperWidgets</a> <span class="ui-li-count">14</span></li>
      <li><a href="#">MegaWidgets</a> <span class="ui-li-count">0</span></li>
      <li><a href="#">WonderWidgets</a> <span class="ui-li-count">327</span></li>     
</ul>

6. theming
<p><a href="./schedule.html" data-role="button" data-theme="b">Button</a></p>

There are 5 type of themings: a, b, c, d, e

7. events
...snip...

references:
http://www.elated.com/articles/jquery-mobile-what-can-it-do-for-you/
分享到:
评论

相关推荐

    Pro jQuery.pdf

    Pro jQuery.pdf What you’ll learn Understand the ... Use jQuery Mobile to create touch-enabled interfaces for mobile devices and tablets Extend jQuery by creating custom plugins and widgets

    [jQuery] jQuery & JavaScript 口袋书 (英文版)

    This hands-on guide gets straight to the essence of what’s new and important in jQuery and JavaScript, and what you need to know to build new web solutions or migrate existing sites to jQuery. ...

    HTML5+BootStrap+Jquery的Admin模板,绝对可用。

    You can use Kode for your projects, web applications or as eCommerce dashboard. Kode coded highly responsive for your mobile phone & tablets. Kode is easily customizable with colors, widgets or ui ...

    Oracle APEX Cookbook, 2nd Edition

    Oracle Application Express APEX is a powerful productive tool that helps you create modern web applications The goal is to make everything declarative so the developer can reduce the amount of coding ...

    JavaScript.JSON.Cookbook.1785286900

    This is especially true if you've been using XML to do the job because it's entirely possible that you could do much of the same work with less code and less data overhead in JSON. While the book's ...

    Visual Studio Lightswitch 2015 2nd 第2版 无水印pdf 0分

    What You Will Learn: Build Desktop and HTML5 business applications for PC or mobile devices Create compelling user interfaces that can support multiple languages Fine tune your application with C#, ...

    jQwidgets 3.6.0

    jQuery Widgets for PC, Mobile and Touch Devices jQuery Widgets for PC and Mobile What is jQWidgets? jQWidgets represents a framework based on jQuery for building web-based applications that run on ...

    html5 jquery pdf

    4. 移动设备支持:文档提到了“Building for the Mobile Web”,这意味着课程内容将包括创建适用于不同移动设备的网页和应用程序。 5. 实时通信:涉及到了“*** WebAPI and SignalR”,这表明课程将讲解如何利用***...

    Bootstrap 4 Cookbook

    What You Will Learn Create stunning UIs using Bootstrap's responsive CSS classes and objects Design layouts with responsive, offsetting, nesting columns of the grid system Customize themes using the ...

    Bootstrap.By.Example.1785288

    What You Will Learn Discover how to use Bootstrap's components and elements, and to customize them for your own projects Understand the framework's usage in the best way with the recommended ...

    Mastering+JavaScript+Functional+Programming-Packt+Publishing(2017).epub

    In that sense, it can be said that what we'll be doing is not FP, but rather Sorta Functional Programming (SFP), aiming for a fusion of paradigms. A final comment about the style of the code in this...

    Mastering+JavaScript+Functional+Programming-Packt+Publishing(2017).pdf

    In that sense, it can be said that what we'll be doing is not FP, but rather Sorta Functional Programming (SFP), aiming for a fusion of paradigms. A final comment about the style of the code in this ...

    Learning Bootstrap 4 - Second Edition

    You'll also discover the principles of mobile-first design in order to ensure your pages can fit any screen size and meet the responsive requirements. Learn to play with Bootstrap's grid system and ...

    Learning.Bootstrap.4.2nd.Edition.1785881000

    You'll also discover the principles of mobile-first design in order to ensure your pages can fit any screen size and meet the responsive requirements. Learn to play with Bootstrap's grid system and ...

    HTML5.and.CSS3.Building.Responsive.Websites.pdf

    Make a mobile website using jQuery mobile and mobile-first design Who This Book Is For This course is for web developers who are familiar with ...

    ASP.NET MVC 4 Recipes: A Problem-Solution Approach

    ASP.NET MVC 4 Recipes: A Problem-Solution Approach ...•using the Web API to design web services that can be consumed by mobile devices and tablets running Android, iOS, and Windows 8

    Full Stack JavaScript 无水印pdf 0分

    You should expect a basic understanding from a collection of quick start guides, tutorials and suggestions for the devel0pment apps discussed in this book. In addition to coding examples, the book ...

Global site tag (gtag.js) - Google Analytics