Bootstrap登录样式
样式1

<!--bs中所有的均应该包裹在其中。-->
<div class="container">
<!-- row是珊栏系统的包裹容器-->
<div class="row">
<!-- col-md-x 表示此珊栏占据几个格子,offset-x 是偏移x格子-->
<div class="col-md-4 col-md-offset-4">
<!-- panel分为3个部分,heading,body,footer其中heading部分的颜色来自于panel-default的颜色-->
<div class="panel panel-default">
<!-- panel-headeing是有颜色的,此颜色来自于panel-default-->
<div class="panel-heading">登录信息</div>
<div class="panel-body">
<form action="#">
<!-- form-group设置了距离上下部分div的距离,更美观。-->
<div class="form-group">
<!-- form-control 设置了边框有弧度圆角以及其中输入字体的pading以及margin,placeholder为默认的问题-->
<input type="text" class="form-control" name="username" placeholder="用户名">
</div>
<div class="form-group">
<input type="password" class="form-control" name="password" placeholder="密码">
</div>
<!-- checkbox 效果同form-group-->
<div class="checkbox">
<!-- 此处用label包裹checkbox 的原因是为了点击记住密码也能对复选框进行选择。-->
<label>
<input type="checkbox" name="remeber">记住密码
</label>
</div>
<!-- button的btn-block 可以占满当前珊栏而不用自适应。-->
<button type="button" class="btn btn-success btn-block btn-lg">登录</button>
</form>
</div>
</div>
</div>
</div>
</div>
样式2:有背景的图片

<!--bs中所有的均应该包裹在其中。-->
<div class="container">
<!-- row是珊栏系统的包裹容器-->
<div class="row">
<!-- col-md-x 表示此珊栏占据几个格子,offset-x 是偏移x格子-->
<div class="col-md-4 col-md-offset-4">
<!-- panel分为3个部分,heading,body,footer其中heading部分的颜色来自于panel-default的颜色-->
<div class="panel panel-default">
<!-- panel-headeing是有颜色的,此颜色来自于panel-default-->
<div class="panel-heading">登录信息</div>
<div class="panel-body">
<form action="#">
<!--
1. form-group设置了距离上下部分div的距离,更美观。
2. 对于form-group 设置了has-feedback可以使其有背景图
-->
<div class="form-group has-feedback">
<!-- form-control 设置了边框有弧度圆角以及其中输入字体的pading以及margin,placeholder为默认的问题-->
<input type="text" class="form-control" name="username"
placeholder="用户名">
<!-- 此项如果要显示必须在form-group的class上添加has-feedback且还要添加一个span-->
<!-- glyphicon是添加图片,form-control-feedback是指示这个是一个样式,同时设置其在右边-->
<span class="glyphicon glyphicon-user form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="password" class="form-control" name="password"
placeholder="密码">
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div> <div class="form-group">
<div class="checkbox">
<!-- 此处用label包裹checkbox 的原因是为了点击记住密码也能对复选框进行选择。-->
<label>
<input type="checkbox" name="remeber">记住密码
</label>
</div>
</div>
<!-- button的btn-block 可以占满当前珊栏而不用自适应。-->
<button type="button" class="btn btn-success btn-block btn-lg">登录</button>
</form>
</div>
</div>
</div>
</div>
</div>
Bootstrap登录样式的更多相关文章
- bootstrap 分页样式代码
bootstrap 分页样式代码,废话不多说,直接上源码 <!DOCTYPE html> <html> <head> <title>Bootstrap ...
- Bootstrap表格样式(附源码文件)--Bootstrap
1.表格默认样式 <h4>表格默认样式</h4><table><!--默认样式--> <tr><th>序号</th> ...
- [置顶]
bootstrap自定义样式-bootstrap侧边导航栏的实现
前言 bootstrap自带的响应式导航栏是向下滑动的,有时满足不了个性化的需求,需要做一个类似于android drawerLayout 侧滑的菜单,这就是我要实现的bootstrap自定义侧滑菜单 ...
- Bootstrap -- 按钮样式与使用
Bootstrap -- 按钮样式与使用 1. 可用于<a>, <button>, 或 <input> 元素的按钮样式 按钮样式使用: <!DOCTYPE h ...
- Bootstrap -- 表格样式、表单布局
Bootstrap -- 表格样式.表单布局 1. 表格的一些样式 举例: <!DOCTYPE html> <html> <head> <meta http- ...
- 第二百三十二节,Bootstrap排版样式
Bootstrap排版样式 学习要点: 1.页面排版 本节课我们主要学习一下 Bootstrap 全局 CSS 样式中的排版样式,包括了标题.页面 主体.对齐.列表等常规内容. 一.页面排版 Boot ...
- 覆盖bootstrap的样式
覆盖bootstrap的样式,很简单.在css中加上 !important 来更改自己样式的执行优先级!
- yii使用bootstrap分页样式
Bootstrap是Twitter推出的一个开源的用于前端开发的工具包.它由Twitter的设计师Mark Otto和Jacob Thornton合作开发,是一个CSS/HTML框架.Bootstra ...
- 在bootstrap ace样式框架上修改的后台管理型模板(Tab页后台管理模板)
后台管理模板开始用frameset布局,但是有时候会遮挡比如上面导航或者左边导航的二级三级弹出菜单,因为宽度被限制了,所以有时候就用easyui或者ext的,但是样式不好看,然后看到了bootstra ...
随机推荐
- HDU1051:Wooden Sticks
Problem Description There is a pile of n wooden sticks. The length and weight of each stick are know ...
- how to use the curses library in unix?
In linux, you can use the ncurses library to use the terminal as a text buffer: move the cursor arou ...
- Postgres数据库在Linux中的I/O优化
I/O 优化1 打开 noatime方法: 修改 /etc/fstab2 调整预读方法: 查看 sudo blockdev --getra /dev/sda 设置 sudo blockdev --se ...
- string.IsNullOrWhiteSpace
string.IsNullOrWhiteSpace(str) 这个是判断所有空白字符,功能相当于string.IsNullOrEmpty和str.Trim().Length总和,他将字符串给Char. ...
- windows ORA-12560: TNS: 协议适配器错误
1.first it report ORA-12560: TNS: 协议适配器错误 手工设定环境变量如下: set ORACLE_HOME=d:\app\OAadmin\product\11.2.0\ ...
- 【最短路】 poj 2387
#include <iostream> #include <stdlib.h> #include <limits.h> #include <string.h& ...
- HttpServletResponse对象
Web服务器收到客户端的http请求,会针对每一次请求,分别创建一个用于代表请求的request对象.和代表响应的response对象. request和response对象即然代表请求和响应,那我们 ...
- oracle-查询执行速度慢的sql
Oracle 查询每天执行慢的SQL 2014-12-11 18:00:04 分类: Oracle 链接:http://blog.itpub.net/28602568/viewspace-136484 ...
- Java Networking Related (Java Examples in a Nutshell 3rd Edition)
Examples to: Use URL class to parse URLs and download the network resources specified by a URL Use U ...
- redis 队列缓存 + mysql 批量入库 + php 离线整合
问题分析 思考:应用网站架构的衍化过程中,应用最新的框架和工具技术固然是最优选择:但是,如果能在现有的框架的基础上提出简单可依赖的解决方案,未尝不是一种提升自我的尝试. 解决: 问题一:要求日志最好入 ...