最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

詳解jQuery Mobile自定義標(biāo)簽

 更新時(shí)間:2016年01月06日 09:29:56   作者:偽磚家  
這篇文章主要介紹了jQuery Mobile自定義標(biāo)簽的相關(guān)資料,需要的朋友可以參考下

本文實(shí)例講解了jQuery Mobile自定義標(biāo)簽,分享給大家供大家參考,具體內(nèi)容如下
規(guī)劃產(chǎn)品國(guó)際化的需求時(shí),涉及到PC Web,移動(dòng)Web,和各app。設(shè)計(jì)了多個(gè)版本的移動(dòng)Web均不理想。
由于移動(dòng)Web采用了jQuery Mobile框架,所以將切換語言放在哪個(gè)位置更合理進(jìn)行了討論。討論的過程和多個(gè)方案我就不提了,先來看看最終效果:

 

是不是感覺很經(jīng)驗(yàn),這里一開始嘗試了多次,最終自定義了一個(gè)下拉選項(xiàng),代碼如下:

<!DOCTYPE html> 
<html> 
<head> 
  <title>jQuery Mobile</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0"> 
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
  <meta http-equiv="Expires" content="0"> 
  <meta http-equiv="Pragma" content="no-cache"> 
  <meta http-equiv="Cache-control" content="no-cache, must-revalidate"> 
  <meta http-equiv="Cache" content="no-cache"> 
  <link rel="stylesheet" href="jQuery/jquery.mobile-1.4.4.min.css" type="text/css"> 
  <script type="text/javascript" src="jQuery/jquery-1.8.3.min.js"></script> 
  <script type="text/javascript" src="jQuery/jquery.mobile-1.4.4.min.js"></script> 
  <script type="text/javascript" src="jQuery/jquery.cookie.js"></script> 
  <script type="text/javascript" src="jQuery/jquery.i18n.properties-min-1.0.9.js"></script> 
  <style type="text/css"> 
    .comFooter{ 
      position: absolute; bottom: 0; left:0; height: 40px; width: 100%; 
    } 
  </style> 
</head> 
<body> 
  <div data-role="page" id="pageWel" data-title="腳本"> 
    <div data-role="header" data-theme="b"> 
      <a href="#" data-role="button" class="ui-btn-left" data-icon="check">測(cè)試</a> 
      <h1 class="title" data-i18n="global_title"> 
        腳本之家
      </h1> 
      <!-- 具體代碼 --> 
      <a href="javascript:void(0);" data-role="none" aria-haspopup="true" class="ui-btn-right"> 
        <select class="hupu_i18n_select" data-icon="check" data-role="button" data-inline="false" data-native-menu="false"> 
          <option value="zh-CN">簡(jiǎn)體中文</option> 
          <option value="zh-TW">繁體中文</option> 
          <option value="en">English</option> 
          <option value="ja">日本語の</option> 
        </select> 
      </a> 
      </div> 
    <div role="main" class="ui-content"> 
      歡迎大家關(guān)注腳本之家 
    </div> 
    <div data-role="footer" data-theme="b" class="comFooter"> 
      <span style="height: 40px; line-height: 40px; text-align: center; display: block; font-size: 9px;">1213456</span> 
    </div> 
  </div> 
</body> 
</html>

 以上就是關(guān)于 jQuery Mobile自定義標(biāo)簽的相關(guān)介紹,希望對(duì)大家了解jQuery Mobile自定義標(biāo)簽有所幫助。

相關(guān)文章

最新評(píng)論

渭源县| 阿克| 克什克腾旗| 潜山县| 大悟县| 淮南市| 九龙坡区| 平武县| 怀安县| 望城县| 达尔| 革吉县| 通化市| 秦皇岛市| 金川县| 舞阳县| 林甸县| 威海市| 莒南县| 怀远县| 榆林市| 五指山市| 商都县| 额敏县| 偃师市| 南丰县| 榕江县| 城口县| 云安县| 兴仁县| 台东市| 蒲江县| 上虞市| 江山市| 华坪县| 烟台市| 建平县| 雷波县| 五原县| 青岛市| 古交市|