<!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>
mobiscroll-2.17.1demo及源文件
原创
©著作权归作者所有:来自51CTO博客作者antlove的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:360如果默认开启急速模式
下一篇:nodejs 基础
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
资源文件制作及使用
<br /> <br />一、引子:<br />现在的Windows应用程序几乎都使用图标、图片、光标、声音等,我们称它们为资源(Resource)
delphi avi image interface borland -
Mobiscroll插件简介
Mobiscroll 用于触屏的日期选择器通过配置方式自定义,有主题官网
mobiscroll 日期选择器 自定义 官网 -
JQM 日期插件 mobiscroll
http://www.mobiscroll.com/ http://code.google.com/p/mobiscroll/
javascript ViewUI jquery css html -
mobiscroll的例子
官网:https://docs.mobiscroll.com/4-3-2/jquery/datetime#options 、、、、、、、、、、、、、
html json css ios ajax