网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的考试资料:

 

标题 基于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="js/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js"></script>
    <script src="js/materialForm.js"></script>
    HTML结构
    该Material Design风格表单的HTML结构是固定的,你可以复制下面的代码。
    <div id="formOutterWrapper">
    <div id="formInnerWrapper">
    <form id="materialForm" method="post" action="" role="form" autocomplete="off">
    <div>
    <div>
    <label for="firstName">用户名称</label>
    <input type="text" id="firstName" name="firstName">
    </div>
    <div>
    <label for="lastName">昵 称</label>
    <input type="text" id="lastName" name="lastName">
    </div>
    </div>
    <div>
    <div>
    <label for="email">电子邮件</label>
    <input type="text" id="email" name="email">
    </div>
    <div>
    <label for="phone">联系电话</label>
    <input type="tel" id="phone" name="phone">
    </div>
    </div>
    <div>
    <div>
    <label for="description">项目描述</label>
    <input type="text" id="description" name="description">
    </div>
    </div>
    <div>
    <div>
    <button type="button" id="submit">提交</button>
    </div>
    </div>
    </form>
    </div>
    </div>
随便看

 

在线学习网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/15 14:40:29