复选框

单选框

控制开关的切换

  1. <label class="input-control checkbox">
  2. <input type="checkbox">
  3. <span class="helper">CheckBox Caption</span>
  4. </label>
  5.  
  6. <label class="input-control radio">
  7. <input type="radio">
  8. <span class="helper">CheckBox Caption</span>
  9. </label>
  10.  
  11. <label class="input-control switch">
  12. <input type="checkbox">
  13. <span class="helper">CheckBox Caption</span>
  14. </label>

按钮

  1. <input type="button" value="Button"/>
  2. <input type="submit" value="Submit"/>
  3. <input type="reset" value="Reset"/>
  4. <input type="button" disabled value="Button"/>

文本框

  1. <div class="input-control text">
  2. <input type="text" />
  3. <button class="helper"></button>
  4. </div>

密码框

  1. <div class="input-control password">
  2. <input type="password" />
  3. <button class="helper"></button>
  4. </div>
  1. <div class="input-control text">
  2. <input type="text" />
  3. <button class="btn-search"></button>
  4. </div>
  1. <div class="input-control text">
  2. <input type="phone" />
  3. <button class="helper"></button>
  4. </div>
  1. <div class="input-control text">
  2. <input type="email" />
  3. <button class="helper"></button>
  4. </div>
  1. <div class="input-control text">
  2. <input type="url" />
  3. <button class="helper"></button>
  4. </div>

下拉选择框

  1. <div class="input-control select">
  2. <select>
  3. <option>...</option>
  4. </select>
  5. </div>
  1. <div class="input-control select">
  2. <select multiple="">
  3. <option>...</option>
  4. </select>
  5. </div>

文本域

  1. <div class="input-control textarea">
  2. <textarea>
  3. </textarea>
  4. </div>

Fieldset

Legend

W3CPLUS是一个前端爱好者的家园,W3CPLUS努力打造最优秀的web 前端学习的站点。W3CPLUS力求原创,以一起学习,一起进步,共同分享为原则。W3CPLUS站提供了有关于css,css3,html,html5,jQuery,手机移动端的技术文档、DEMO、资源,与前端爱好者一起共勉。


  1. <fieldset>
  2. <legend>...</legend>
  3. ...
  4. </fieldset>

Input使用spanN类名

  1. <div class="input-control text spanN">
  2. <input type="text" />
  3. <button class="helper"></button>
  4. </div>