您好,登錄后才能下訂單哦!
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"> <title>Mobiscroll 測試</title> <!-- jQuery Include --> <script src="dist/js/jquery-1.11.3.min.js"></script> <!-- Mobiscroll JS and CSS Includes --> <script src="dist/js/mobiscroll.custom.min.js"></script> <link href="dist/css/mobiscroll.custom.min.css" rel="stylesheet" type="text/css" /> <style> .section{ position:relative; height:32px; padding-left:80px; padding-right:15px; margin-bottom:10px; box-sizing: border-box; } .section label{ position:absolute; left:0; top:0; bottom:0; height:32px; line-height: 32px;; font-size:12px; } .section>select, .section>input{ width:100%; height:100%; display:block; padding:0 10px; box-sizing: border-box; } </style> </head> <body> <!-- Select demo markup --> <div class="section"> <label>選擇控件</label> <select id="demo_select"> <option value="">Please Select</option> <option value="1">Atlanta</option> <option value="2">Berlin</option> <option value="3">Boston</option> <option value="4">Chicago</option> <option value="5">London</option> <option value="6">Los Angeles</option> <option value="7">New York</option> <option value="8">Paris</option> <option value="9">San Francisco</option> </select> </div> <!-- Date demo markup --> <div class="section"> <label>日期控件</label> <input type="text" id="demo_date" /> </div> <!-- Date & Time demo markup --> <div class="section"> <label>日期時間控件</label> <input type="text" id="demo_datetime" /> </div> <!-- Time demo markup --> <div class="section"> <label>時間控件</label> <input type="text" id="demo_time" /> </div> <script> var theme = "ios"; var mode = "scroller"; var display = "bottom"; var lang="zh"; // Select demo initialization $('#demo_select').mobiscroll().select({ theme: theme, // Specify theme like: theme: 'ios' or omit setting to use default mode: mode, // Specify scroller mode like: mode: 'mixed' or omit setting to use default display: display, // Specify display mode like: display: 'bottom' or omit setting to use default lang: lang // Specify language like: lang: 'pl' or omit setting to use default }); // Date demo initialization $('#demo_date').mobiscroll().date({ theme: theme, // Specify theme like: theme: 'ios' or omit setting to use default mode: mode, // Specify scroller mode like: mode: 'mixed' or omit setting to use default display: display, // Specify display mode like: display: 'bottom' or omit setting to use default lang: lang // Specify language like: lang: 'pl' or omit setting to use default }); // Date & Time demo initialization $('#demo_datetime').mobiscroll().datetime({ theme: theme, // Specify theme like: theme: 'ios' or omit setting to use default mode: mode, // Specify scroller mode like: mode: 'mixed' or omit setting to use default display: display, // Specify display mode like: display: 'bottom' or omit setting to use default lang: lang, // Specify language like: lang: 'pl' or omit setting to use default dateFormat:"yyyy-mm-dd", // minDate: new Date(2012,3,10,9,22), // More info about minDate: http://docs.mobiscroll.com/2-14-0/datetime#!opt-minDate maxDate: new Date(2014,7,30,15,44), // More info about maxDate: http://docs.mobiscroll.com/2-14-0/datetime#!opt-maxDate stepMinute: 5 // More info about stepMinute: http://docs.mobiscroll.com/2-14-0/datetime#!opt-stepMinute }); // Time demo initialization $('#demo_time').mobiscroll().time({ theme: theme, // Specify theme like: theme: 'ios' or omit setting to use default mode: mode, // Specify scroller mode like: mode: 'mixed' or omit setting to use default display: display, // Specify display mode like: display: 'bottom' or omit setting to use default lang: lang // Specify language like: lang: 'pl' or omit setting to use default }); </script> </body> </html>
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。