基于Bootstrap實現(xiàn)Material Design風格表單插件 附源碼下載
來源:易賢網(wǎng) 閱讀:1275 次 日期:2016-07-08 10:15:09
溫馨提示:易賢網(wǎng)小編為您整理了“基于Bootstrap實現(xiàn)Material Design風格表單插件 附源碼下載”,方便廣大網(wǎng)友查閱!

Jquery Material Form Plugin是一款基于Bootstrap的Material Design風格的jQuery表單插件。該表單通過自定義樣式和jQuery來將Bootstrap的表單修改為扁平風格的表單,并帶有浮動標簽特效。

名單

使用方法

使用該Material Design風格表單需要在頁面中引入jquery,bootstrap相關文件和materialFormStyles.css、materialForm.js文件。

<link rel="stylesheet" >

<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 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">聯(lián)系電話</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>

更多信息請查看網(wǎng)絡編程

2025國考·省考課程試聽報名

  • 報班類型
  • 姓名
  • 手機號
  • 驗證碼
關于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
咨詢QQ:1093837350(9:00—18:00)版權所有:易賢網(wǎng)