bootstrap 表单控件 控件状态 控件大小 help-block

<!DOCTYPE html>
<html lang="en"> <head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="dist/css/bootstrap.css">
</head> <body>
<div class="container"> <p class="btn-primary">表单控件</p>
<input type="text" placeholder="this is text">
<select name="" id="">
<option value="">1</option>
<option value="">2</option>
<option value="">3</option>
</select>
<select name="" id="" multiple>
<option value="">1</option>
<option value="">2</option>
<option value="">3</option>
</select>
<div class="checkbox">
<label for="">
<input type="checkbox"> abc
</label>
</div>
<div class="radio">
<label for="">
<input type="radio" name="A" value="A" checked="">A
</label>
</div>
<div class="radio">
<label for="">
<input type="radio" name="A" value="B">B
</label>
</div>
<div class="checkbox-inline">
<label for="">
<input type="checkbox"> ABC
</label>
</div>
<div class="radio-inline">
<label for="">
<input type="radio"> A
</label>
</div>
<p class="btn-primary">控件状态</p>
<input type="text" value="ABC" disabled="disabled">
<input type="text" value="set class disabled is useless" class="disabled">
<input type="text" value="ABC">
<p class="btn-primary">验证提示状态</p>
<div class="form-group has-warning">
<label for="inputwarning" class="control-label">input Warning</label>
<input type="text" class="form-control" id="inputwarning">
</div>
<div class="form-group has-error">
<label for="inputerror" class="control-label">input Error</label>
<input type="text" class="form-control" id="inputerror">
</div>
<div class="form-group has-success">
<label for="inputsuccess" class="control-label">input Success</label>
<input type="text" class="form-control" id="inputsuccess">
</div>
<div class="form-group has-warning has-feedback">
<label for="inputwarning" class="control-label">input Warning</label>
<input type="text" class="form-control" id="inputwarning">
<span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
</div>
<div class="form-group has-error has-feedback">
<label for="inputerror" class="control-label">input Error</label>
<input type="text" class="form-control" id="inputerror">
<span class="glyphicon glyphicon-remove form-control-feedback"></span>
</div>
<div class="form-group has-success has-feedback">
<label for="inputsuccess" class="control-label">input Success</label>
<input type="text" class="form-control" id="inputsuccess">
<span class="glyphicon glyphicon-ok form-control-feedback"></span>
</div>
<p class="btn-primary">控件大小</p>
<div class="row">
<div class="col-xs-2">
<input type="text" class="input-lg form-control" placeholder='.col-xs-2'>
</div>
<div class="col-xs-3">
<input type="text" class="input-sm form-control" placeholder='.col-xs-3'>
</div>
</div>
<p class="btn-primary">.help-block</p>
<span>this is span before help-block</span>
<span class="help-block">this is help block span</span>
<span>this is span after help-block</span>
</div>
</body> </html>

bootstrap 表单控件 控件状态 控件大小 help-block的更多相关文章

  1. 详解Bootstrap表单组件

    表单常见的元素主要包括:文本输入框.下拉选择框.单选框.复选框.文本域.按钮等.下面是不同的bootstrap版本: LESS:  forms.less SASS:  _forms.scss boot ...

  2. Bootstrap表单

    Bootstrap 提供了下列类型的表单布局: 垂直表单(默认) -> 这个不好看,都是手机版了,PC版占一排不好看: 内联表单 -> 我相信这个才是你想要的,PC版响应横排,手机版响应竖 ...

  3. 第二百三十四节,Bootstrap表单和图片

    Bootstrap表单和图片 学习要点: 1.表单 2.图片 本节课我们主要学习一下 Bootstrap 表单和图片功能,通过内置的 CSS 定义,显示各 种丰富的效果. 一.表单 Bootstrap ...

  4. bootstrap 表单类

    bootstrap 表单类 表单美化 用法: 向父元素 <form role="form"></form>     添加 role="form&q ...

  5. bootstrapValidator.js,最好用的bootstrap表单验证插件

    前言:做Web开发的我们,表单验证是再常见不过的需求了.友好的错误提示能增加用户体验.博主搜索bootstrap表单验证,搜到的结果大部分都是文中的主题:bootstrapvalidator.今天就来 ...

  6. bootstrap表单带验证

    <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="utf-8& ...

  7. 基于Bootstrap表单验证

    基于Bootstrap表单验证 GitHub地址:https://github.com/chentangchun/FormValidate 使用方式: 1.CSS样式 .valierror { bor ...

  8. 测开之路一百一十一:bootstrap表单

    bootstrap表单 引入bootstrap和jquery 默认表单 垂直表单 表单属性绑定:for属性,当for的属性和id的属性相同时,单击for标签,光标自动跳到相同属性的输入框 复选框 水平 ...

  9. Bootstrap 表单控件一(单行输入框input,下拉选择框select ,文本域textarea)

    单行输入框,常见的文本输入框,也就是input的type属性值为text.在Bootstrap中使用input时也必须添加type类型,如果没有指定type类型,将无法得到正确的样式,因为Bootst ...

随机推荐

  1. 向datagridview 添加行

    datagridview 已经绑定数据源且控件的AllowUserToAddRows设置为false时. ((DataTable)dataGridView1.DataSource).Rows.Add( ...

  2. [算法] kruskal最小生成树算法

    #include <stdio.h> #include <stdlib.h> #define MAX 100 int N, M; struct Edge { int u,v; ...

  3. java类到底是如何加载并初始化的?

    Java虚拟机如何把编译好的.class文件加载到虚拟机里面?加载之后如何初始化类?静态类变量和实例类变量的初始化过程是否相同,分别是如何初始化的呢?这篇文章就 是解决上面3个问题的. 若有不正之处, ...

  4. create schema 与create database的区别

    概论第四版中增加了create schema (第三版好像没有这个内容),但是却没有提到create  database.相反目前在大多数DBMS中(如SQL Server2000.Mysql等)都有 ...

  5. hibernate的优化

    1.使用双向一对多关联,不实用单项一对多2.不用一对一,使用一对多3.配置对象缓存,不使用集合缓存

  6. iOS之SDWebImage清理缓存

    .找到 SDWebImage找到SDImageCache类 添加如下方法 - (float)checkTmpSize { float totalSize = 0; NSDirectoryEnumera ...

  7. Cocos2dx 学习笔记整理----在项目中使用图片(一)

    cocos2dx有多种使用图片的方法,先来个最简单的:用CCSprite直接使用图片. 首先,进入到之前建立的项目,把你将要使用的图片放入到目录下的Resources文件夹里面.项目中以相对路径使用资 ...

  8. 关于bool和BOOL的区别

    1.类型不同: BOOL是int类型,bool是布尔类型 2.长度不同: BOOL长度是其环境来定,一般是4个字节,因为其是int类型;bool长度为一个字节 3.取值不同: BOOL取值是FALSE ...

  9. SQL复习一(基础知识)

    1.什么是sql SQL(structure query language)是结构化查询语言,它是对关系型数据库的操作语言.它可以应用到所有的数据库中,例如:MySQL.Oracle.SQL serv ...

  10. [Lua]Lua入门教程

    什么是Lua Lua 是一个小巧的脚本语言.是巴西里约热内卢天主教大学(Pontifical Catholic University of Rio de Janeiro)里的一个研究小组,由Rober ...