国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 語言 > JavaScript > 正文

jQuery mobile 移動web(4)

2024-05-06 16:26:38
字體:
來源:轉載
供稿:網友
這篇文章主要介紹了jQuery mobile 移動web(4)的相關資料,需要的朋友可以參考下
 

移動互聯網的發展,促生了各種各樣的移動Web框架。jQuery Mobile 是一個針對觸摸體驗的 web UI 開發框架,很容易就可以把 Web App 包裝成適合 Android 與 iOS等觸屏移動設備的 Javascript 庫,與 HTML5結合可以很方便快速的開發出一款具有良好界面及用戶體驗的 Web App??,而且不需要安裝任何東西,只需將需要的 *.js 和 *.css 文件直接包含到 web 頁面中即可。

下拉菜單:

   設置label 元素的for 屬性為 select label 元素的文本內容作為選項的名稱 定義div元素并設置data-role 屬性值為 fieldcontain.

   <div data-role="controlgroup">    <label for="select" class="select">請選擇你的興趣</label>    <select name="select" id="select">      <option>音樂</option>      <option>電影</option>      <option>體育</option>      <option>旅游</option>    </select>   </div>

分組的選擇菜單

   要在select 元素制定optgroup。  

<div data-role="controlgroup">      <label for="select">請選擇你的興趣:</label>      <select name="select" id="select" data-native-menu="true">        <optgroup label="娛樂類"/>        <option>音樂</option>        <option>電影</option>        <optgroup label="文體累"/>        <option>體育</option>        <option>旅游</option>      </select>     </div>

禁用指定Option 數據項的選擇菜單

    <div data-role="controlgroup">      <label for="select">請選擇你的興趣:</label>      <select name="select" id="select" data-native-menu="true">        <optgroup label="娛樂類"/>        <option disabled="">音樂</option>        <option>電影</option>        <optgroup label="文體累"/>        <option>體育</option>        <option>旅游</option>      </select>   </div>

普通連接列表  

<div data-role="page">      <header data-role="header">        <h1>列表例</h1>      </header>      <div data-role="content">        <ul data-role="listview" data-theme="g">          <li><a href="#">List 1</a></li>          <li><a href="#">List 2</a></li>          <li><a href="#">List 3</a></li>          <li><a href="#">List 4</a></li>        </ul>      </div>   </div>

多層次嵌套列表。

   

<div data-role="page">    <header data-role="header">      <h1>列表例</h1>    </header>    <div data-role="content">      <ul data-role="listview" data-theme="g">        <li>          <a href="#" data-add-back-btn="true">List 1</a>          <p >這是第一層</p>          <ul>            <li>              <a>subList 1 of 1</a>              <a>subList 1 of 2</a>              <a>subList 1 of 3</a>            </li>          </ul>        </li>        <li>          <a href="#" data-add-back-btn="true">List 2</a>          <p >這是第二層</p>          <ul>            <li>              <a>subList 2 of 1</a>              <a>subList 2 of 2</a>              <a>subList 2 of 3</a>            </li>          </ul>        </li>      <li>        <a href="#" data-add-back-btn="true">List 3</a>        <p >這是第三層</p>        <ul>          <li>            <a>subList 3 of 1</a>            <a>subList 3 of 2</a>            <a>subList 3 of 3</a>          </li>        </ul>    </li>  </ul>  </div>   </div>

以上內容是小編給大家分享的jQuery mobile 移動web(4)的相關知識,希望大家喜歡。



注:相關教程知識閱讀請移步到JavaScript/Ajax教程頻道。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 云阳县| 泰和县| 巴马| 青川县| 壶关县| 普定县| 中牟县| 施秉县| 明水县| 长春市| 肇源县| 和林格尔县| 新昌县| 青铜峡市| 大悟县| 循化| 剑川县| 绵阳市| 白城市| 合阳县| 凌海市| 林周县| 峡江县| 常山县| 金湖县| 临汾市| 迁安市| 罗甸县| 德江县| 合江县| 深泽县| 磴口县| 香河县| 阿拉善左旗| 大庆市| 东阳市| 聂荣县| 乌审旗| 泗阳县| 屏南县| 马边|