星空网 > 软件开发 > 网页设计

基于Bootstrap的Material Design风格表单插件

Jquery Material Form Plugin是一款基于Bootstrap的Material Design风格的jQuery表单插件。该表单通过自定义样式和jQuery来将Bootstrap的表单修改为扁平风格的表单,并带有浮动标签特效。

在线预览    源码下载

 

 使用方法

使用该Material Design风格表单需要在页面中引入jquery,bootstrap相关文件和materialFormStyles.css、materialForm.js文件。

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css"><link rel="stylesheet" href="css/materialFormStyles.css"><script src='/images/loading.gif' data-original="js/jquery.min.js"></script><script src='/images/loading.gif' data-original="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js"></script><script src='/images/loading.gif' data-original="js/materialForm.js"></script>     

HTML结构

该Material Design风格表单的HTML结构是固定的,你可以复制下面的代码。

<div class="container" id="formOutterWrapper">  <div class="container" id="formInnerWrapper">      <form id="materialForm" class="form" method="post" action="" role="form" autocomplete="off">        <div class="form-group">          <div class="col-xs-6">            <label class="labels" for="firstName">用户名称</label>            <input type="text" class="formInput" id="firstName" name="firstName">          </div>          <div class="col-xs-6">            <label class="labels" for="lastName">昵 称</label>            <input type="text" class="formInput" id="lastName" name="lastName">          </div>        </div>        <div class="form-group">          <div class="col-xs-6">            <label class="labels" for="email">电子邮件</label>            <input type="text" class="formInput" id="email" name="email">          </div>          <div class="col-xs-6">            <label class="labels" for="phone">联系电话</label>            <input type="tel" class="formInput" id="phone" name="phone">          </div>        </div>        <div class="form-group">          <div class="col-xs-12">            <label class="labels" for="description">项目描述</label>            <input type="text" class="formInput" id="description" name="description">          </div>        </div>        <div class="form-group">          <div class="col-xs-12">            <button type="button" class="btn btn-primary green flatButton" id="submit">提交</button>          </div>        </div>      </form>  </div></div>

该表单插件的github地址为:https://github.com/ch0chi/Jquery-Material-Form-Plugin

 

在线预览    源码下载




原标题:基于Bootstrap的Material Design风格表单插件

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

ios国际版tiktok:https://www.goluckyvip.com/tag/82614.html
快手国际版tiktok下载:https://www.goluckyvip.com/tag/82616.html
tiktok下载在线:https://www.goluckyvip.com/tag/82617.html
tiktok关注后一会又会消失:https://www.goluckyvip.com/tag/82618.html
tiktok各国用户量:https://www.goluckyvip.com/tag/82619.html
tiktok跨境专线:https://www.goluckyvip.com/tag/82620.html
SaaS公司要不要实行销售“追回”机制?:https://www.kjdsnews.com/a/1836574.html
美国消费者法案已开始年度认证,卖家请尽快提交!:https://www.kjdsnews.com/a/1836575.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流