bootstrap简单使用
Bootstrap (版本 v3.3.7) 官网教程: https://v3.bootcss.com/css/
row——行 row——列
push——推 pull——拉
col-md-offset-3 在左边偏移3格
col-md-push-5 向右推5格
col-md-pull-2 向左拉2格
结构
<div class="container">
<div class="row">
<div class="col-md-4">col-md-4</div>
<div class="col-md-4">col-md-4</div>
<div class="col-md-4">col-md-4</div>
</div>
</div>
<body class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>编号</th>
<th>姓名</th>
<th>性别</th>
<th>年龄</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>王小二</td>
<td>男</td>
<td>21</td>
</tr>
<tr class="info">
<td>2</td>
<td>张溜溜</td>
<td>女</td>
<td>23</td>
</tr>
<tr>
<td>3</td>
<td>程陈晨</td>
<td>男</td>
<td>25</td>
</tr>
<tr class="success">
<td>4</td>
<td>李云龙</td>
<td>男</td>
<td>53</td>
</tr>
</tbody>
</table>
</body>
{
position:absolute;
background-position: center center;
background-size:cover;
}
jQuery文件。务必在bootstrap.min.js 之前引入(因为是基于jquery)
站点图标 <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
快速生成图片 https://www.dummyimage.com/
bootstrap 实现两种方法:1)通过 js 实现 2)通过css3 媒体查询实现
图片:<img src="..." class="img-responsive"/> 图片响应式
用到栅格,应在父元素清除浮动(clearfix)
container 和 container-fluid 的区别
.container类用于固定宽度并支持响应式布局
.container-fluid类用于100%宽度,占据全部视口

https://www.cnblogs.com/zhangbao/p/6593121.html
一个典型导航条的结构如下:
nav .navbar.navbar-default
.container
.nav-header
a.nav-brand
<div class="form-group">
<label class="sr-only">用户名:</label>
<input type="text" class="form-control" name="name" placeholder="输入用户名" />
</div> <div class="checkbox">
<label><input type="checkbox" />记住密码</label>
</div>
bootstrap简单使用的更多相关文章
- 基于Bootstrap简单实用的tags标签插件
http://www.htmleaf.com/jQuery/ jQuery之家 自由分享jQuery.html5和css3的插件库 基于Bootstrap简单实用的tags标签插件
- Bootstrap简单入门
Bootstrap简单入门 BootStrap基本模板 <!DOCTYPE html> <html> <head> <meta charset="U ...
- Bootstrap简单Demo(2015年05月-18日)
Bootstrap的简单使用 1.Bootstrap是什么? 这是Bootstrap官网上对它的描述:Bootstrap是最受欢迎的HTML.CSS和JS框架,用于开发响应式布局.移动设备优先的WEB ...
- bootstrap简单图文环绕效果
一. 下载bootstrap-3.3.7 二. 在html页面引入css,js; eg: <link src="bootstrap-3.3.7-dist/css/b ...
- Bootstrap简单HelloWorld入门教程
这篇教程旨在让你在20分钟内学会使用twitter bootstrap创建一个站点.看完这个教程后你应该能够使用bootstrap来建立一个基本的响应式布局的页面,了解栅格系统,并且能够使用boots ...
- mvc area区域和异步表单,bootstrap简单实例
码农最怕眼高手低 今天来练习mvc Area技术和bootstrap以及异步表单的C#代码实现. 1.area区域架构对于建立复杂业务逻辑很有帮助,由 AreaRegistration.Regist ...
- 【Bootstrap简单用法】
一.下载及使用 参考网站:http://www.bootcss.com/ 1.使用 BootCDN 提供的免费 CDN 加速服务(同时支持 http 和 https 协议) <!-- 最新版本的 ...
- bootstrap 简单练习(后续把其它页面也进行练习)
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <m ...
- bootstrap简单使用实例
表格实例,包含bootstrap.css 和 2.1.1jquery <!DOCTYPE html> <html> <head> <meta charset= ...
随机推荐
- ESLint笔记
ESLint是JavaScript的代码检查工具.因为JS是弱类型的语言,不需要编译,代码错误是在运行时调适的,所以需要个工具在编码的过程发现问题.ESLint的初衷是为了让程序员可以创建自己的检测规 ...
- 《Java大学教程》--第1章 步入Java世界
1.2 软件:用于计算机执行的指令的集合称之为程序(program).单个程序或者一组程序称之为软件(software)1.3 编译:计算机的语言称为机器码(machine code).用编译器(co ...
- sftpdrive mtputty
https://blog.csdn.net/junli_chen/article/details/77527250?locationNum=2&fps=1
- nodejs前后分离
proxy: { '/api': { target: 'http://localhost:3000/', pathRewrite: {'^/api' : ''}, changeOrigin: true ...
- Django-rest-framework 接口实现 版本控制 versioning
版本控制 rest_framework 提供了 5 种版本控制 以及对应的 写法 url的 更改都可以 在 from rest_framework import versioning 中查看 Acce ...
- kafka环境搭建测试
一.安装 1. 下载:去kafka官网下载:https://www.apache.org/dyn/closer.cgi?path=/kafka/0.9.0.1/kafka_2.11-0.9.0.1.t ...
- Ubuntu16.04 下 hadoop的安装与配置(伪分布式环境)
一.准备 1.1创建hadoop用户 $ sudo useradd -m hadoop -s /bin/bash #创建hadoop用户,并使用/bin/bash作为shell $ sudo pass ...
- 7.01-beautiful_soup
# pip install beautifulsoup4 from bs4 import BeautifulSoup html_doc = """ <html> ...
- Md5的生成
1.使用hashlib包(一) import hashlib src = 'anthing' m1 = hash.new() m1.update(src) print (m1.hexdigest()) ...
- 【编辑器】sublime 标题栏中文乱码问题
首选项--------设置-用户中添加"dpi_scale": 1.0,如下图所示 作者:smile.轉角 QQ:493177502
