bootstrap辅助类

a.对于文本颜色

以下不同的类展示了不同的文本颜色。如果文本是个链接鼠标移动到文本上会变暗:
类 描述
.text-muted "text-muted" 类的文本样式
.text-primary "text-primary" 类的文本样式
.text-success "text-success" 类的文本样式
.text-info "text-info" 类的文本样式
.text-warning "text-warning" 类的文本样式
.text-danger "text-danger" 类的文本样式

b.示例代码如下:

<p class="text-muted">this is a demo</p>
<p class="text-primary">this is a demo</p>
<p class="text-success">this is a demo</p>
<p class="text-info">this is a demo</p>
<p class="text-warning">this is a demo</p>
<p class="text-danger">this is a demo</p>

c.效果如下:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHsAAAC4CAIAAABM2QQyAAAJlklEQVR4nO2dv04bSxSH/UqIEmgQLwEdKZIKiQokCjdGMlDEyguEJMQgSiSkRbKQAJuU/DEFojIuMFYoIp5gUszMmTPjmd1ZIc4u9vlEYa9/szvz7dkzK92reyuCoaVS9AQmDjZODRunho1Tw8apYePUVIQQw+Gw6GlMEJVWY73Rksa7zfX1Znc0021CJIP4ZH5Cs/toxBgvB+WeXTyVdUmzq9bUajXUIahWU7lD+NFfy/FJK7EedNltwkla2Ljv9MNWQ8X0GbvNkbNnz+u9cWscZtdtwpy0R1xl/orLlTRHu02v82Fgbvg4+iJlyog/Pmw17HkVIT3cVcw3n0c/8cmRcaN55yB8dcPDVmO92fX4dD/rYOpV3508xtEjGW4CkUlzjVBfsSpZOGJdGq2hPQDv4Xol7r7uXoGGXMbRL/5GmCuJfvBVW5pxr6cxNi6ECEw3OukE39RVvNfxGf94XQX/7q+P6KQb8D4HuDG7W6Hts9EaRhgvyc6p1gtvh6k1ntZ38yVxQL3Hheo24+0QtGUbtwcW9XZYxEUnGjZODRunho1Tw8apYePUsHFq2Dg1bJwaNk4NG6eGjVPDxqlh49SwcWrYODVsnBo2Tg0bp6YihOgNX4uexgRR+fEtWTqVxp+qG0n1bjTzVN1o/4j6p7DxyfzcXU1vXJ2/z7kpiTFeDsbG+PRGMr2RTB88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EHfU4ZSItb47Cq/hbMSXvEVeavuFxJY7m/Ne/L9ANzw8fFv/3Pap7yFkq50rX8LO9EXw0E+2iBpIS7ijHl8+gnPumM8+Wdg/DVDfe7X+YvO8q4nj9ei/7cbybWwGK6aB7j6JEMN4HIJOShsbjGTfFKtC/Ur8xfst9HtYxngtbVqdtFbT0rZOQyrme6FWrQuZLalPDXeJpxbzcYY+NCiMB0o5PO4t/UVeA6WcY/XlfBS7WWB0Qn3YD3OcAbnbtzmhvWqauxmcZLsnOqtghvh6k1rrtEqEHHJ3Gg3g+WG+wH4bdDMJtt3B5Y1NthERedaNg4NWycGjZODRunho1Tw8apYePUsHFq2Dg1bJwaNk4NG6eGjVPDxqlh49T8B0+HEPKYnj61AAAAAElFTkSuQmCC" alt="" />

d.背景色

以下不同的类展示了不同的背景颜色。 如果文本是个链接鼠标移动到文本上会变暗:

类     描述
.bg-primary 表格单元格使用了 "bg-primary" 类
.bg-success 表格单元格使用了 "bg-success" 类
.bg-info 表格单元格使用了 "bg-info" 类
.bg-warning 表格单元格使用了 "bg-warning" 类
.bg-danger 表格单元格使用了 "bg-danger" 类

e.示例代码如下:

 <p class="bg-primary">this is a demo</p>
<p class="bg-success">this is a demo</p>
<p class="bg-info">this is a demo</p>
<p class="bg-warning">this is a demo</p>
<p class="bg-danger">this is a demo</p>

f.效果如下:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAaYAAAClCAIAAACY8M5OAAAKB0lEQVR4nO2dT0sbTRyA9zvNR9FiLfQ7hOCh1nrw3GJ5D4oF6a0eArmJChU9JOhVbA8RSqR4kxZKodhDIe9h/uzsOJOdTdBEfs/Dc4jxt3Hj4WFmN2IxAgAQQzHrEwAAeDxIHgAIguQBgCBIHgAIguQBgCBIHgAIguQBgCBIHgAIguQBgCBIHgAIolCvDxERhUjyEFGQJA8RBUnyEFGQhXp9+HLrbObngYj4CBaffoy+93XyvvRHo373/tCX/ujPp62cl8ufbG73djS63Zj17wsRn7Q5yZsPSR4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qSbd4TJK5dvWhssb8tc8mL33FvN3VRvpNj3dbxSXdZVVouIKMFGyTOevkldpGs0aVP1N77KG5e86IaU5CFinZMk79/fm0QvsieD+ky1sbXWJo+NLaJ4J72WV+mLM3syHIiuBP27DeHti7KYxyvm2NrkcfsCUbyFuTTmPqQydpVnN6qpi3T5k/7AymlyweWuCaY/pOLSVp+8Gz6kgihc/sYWEQVJ8hBRkCQPEQVJ8hBRkCQPEQXJv/sBAEGQPAAQBMkDAEGQPAAQBMkDAEGQPAAQBMkDAEGQPAAQBMkDAEGQPAAQRPF7OEREFCLJQ0RBkjxEFCTJQ0RBFr+Hw6+93szPAxHxESw+LKrnmzp5nVWlVjv3hzqravFDL+fl8ieb22kr1T6a9e8LEZ+0OcmbD0keIk5tYf7DYbtjkre5+dw85dZr5drt6+aiCr/rmz85/N1zP0ipZGo7q+5FNv3k9T6UL7/5tXxBPWbfUcd7POZARBRjuMpzWTlquyjYkPnrrPiaq9FkmbmjtorN9BLn5j8//Lq5aM5TN1TXTcdOP9Yp7JkDXf68N4iIUkxvbMtUxUIWN3+yanQ+eNJ9GQ73Piyq1Y5Jnj1//73Yx73N55UD53sjj4gPYJPkebvC9D40c9LNO8Lklcs3rQ2Wt2Uueb7Z81Zzw+qNFPu+Ou3qsq6yWkRECTZKnvGonbpI12jSpmoYX+WNS150Q0ryELHOSZL3ezhM9CJ7MqjPVBtba23y2NgiinfSa3mVvjizJ8OB6ErQv9sQ3r4oi9lpm2Nrk8ftC0TxFubSmPuQythVnt2opi7S5U/6A+2j5ILLXRNMf0jFpa0+eUM+pIIoXP7GFhEFSfIQUZAkDxEFSfIQUZAkDxEFyb/7AQBBkDwAEATJAwBBkDwAEATJAwBBkDwAEATJAwBBkDwAEATJAwBBkDwAEATJAwBBkDwAEATJAwBBkDwAEMT/rfB5GQt9XwwAAAAASUVORK5CYII=" alt="" />

g.其他修饰

类     描述
.pull-left 元素浮动到左边
.pull-right 元素浮动到右边
.center-block 设置元素为 display:block 并居中显示
.clearfix 清除浮动
.show 强制元素显示
.hidden 强制元素隐藏
.sr-only 除了屏幕阅读器外,其他设备上隐藏元素
.sr-only-focusable 与 .sr-only 类结合使用,在元素获取焦点时显示(如:键盘操作的用户)
.text-hide 将页面元素所包含的文本内容替换为背景图
.close 显示关闭按钮
.caret 显示下拉式功能

h.示例部分代码如下:

 <div style="width:200px;" class="bg-success pull-right">123</div>
<div style="width:200px;" class="bg-info" >456</div> <div style="width:200px;" class="bg-warning pull-right">789</div>
<div style="width:200px;" class="bg-danger">000</div>

i.效果如下:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZIAAAA6CAIAAAAV2EiaAAAEN0lEQVR4nO2bP0vrUBxA853uR2klxk8RikNF+wksFZeiUBwzFNyKPGgxQwVXkTekIHHILIiLHQq+If/uzU2rBX+04Z3DGV6vEd6QHn73mjhfAACNwtn1fwAAYDvIFgA0DLIFAA2DbAFAwyBbANAwnMXbJ+KvW9xhr+8R4u9KtlBEsoVyki0UkWyhnGQLRSRbKCfZQhHJFsppZutp1FJe/0n/qOGOwvzKoFusatcj5tZl6/7CVZ07/f4LOuXt5Y/NKzNOgp1/SXDf1LMV9V0zQ5NT1Z3ad2TQVa1hVF6jToNdf0lw37SylZVIy1bQUap9dZ9+fLhqFeUanxS1ur9wy2sQU8tshUOv1T3Vp62gq/yJdUdWJjLEOvVsPVy1lFLK9Tv6tHXnmxNW0FGti+fo9fm8nf7jPcp+1z1/2PX3BPfKPFtPo5Y7Co0kRX3XaxWzerFDnJzqu0XEWs1snY/fo7pNoqZZq1ymLawxzVbUd73+U2WSmvpK2wymXXv7DIeeckfB0Mt7xg4Ra/zZ2ZbxI/MYKz/eYtRCS2eRbg/TPG3aAE59pfzJZzj0lOJsC79xm2zZzdKs7iURI6cYoxZvm7MV9d08W8YmMVvf+fcE98qfZuv5vK02bwM3bi3xv9QJy+2e9rfoiT1GTf20aNWzLbKFNf4oW3e+ss+zao7qyRYabnhuy+xRWStrnU0iWn6frfozeOuyO5/jLay48XHTt6lf96xp/oQXR/K41m+zlT0VYZL/VHvclGahJS/3oIi83INyki0UkWyhnGQLRSRbKCfZQhHJFspJtlBEsoVyOh9xjPjrFtlaLRPE35VsoYhkC+UkWygi2UI5yRaKSLZQTrKFIpItlDPN1vy6nb1KcTiYazfftuuImWW2Zsf2Szy9WXr/3faKpbNb7b5ct46YrJaJkzWoM/6I4494fFKWaNt1xNJ101Z4ppR3+bJMVsvHG6+o0uONp45Gj6u6dcqFFZ2P+eBQta/n+Q037qj24G8cb72OqFmfrdmxUsdh9vG2V45dycvoIMuTcU2yWlweqYObxe6/Krg/OtXuzAeHqvMntnr07TqiZl229JEqWTdtvYwO8nEs1agb4mqZOH8HbStD7et5vO36zr8nuFfWZKsyRi2TVbpnNE67aqctsoWGZAtFtLJVGbWSdIwqVsKzYvK67Wkn8WnXyBbqsklEEavZso+oZsfGZtC4oPxLYm/2eOORLTR0qt0xjt63WUfUrGarEil7Zd3R++LyyNpa4n8uD0CgiJVsaXvAQmuTmFbM6Je9tUTkcVOU0c5WXX20x0r1yUt7QpVmoS0v96CIvNyDcpItFJFsoZxkC0UkWygn2UIRyRbKSbZQRLKFcjpfAACNgmwBQMMgWwDQMMgWADQMsgUADYNsAUDDIFsA0DDIFgA0DLIFAA2DbAFAwyBbANAwyBYANIx/qbOA1syvaXMAAAAASUVORK5CYII=" alt="" />

j.关闭图标:

使用通用的关闭图标来关闭模态框和警告框。使用 class close 得到关闭图标。

关闭图标实例
<button type="button" class="close" aria-hidden="true">
&times;
</button>

k.插入符号

使用插入符表示下拉功能和方向。使用带有 class caret 的 <span> 元素得到该功能。

<p>插入符实例
<span class="caret"></span>
</p>

l.快速浮动:

分别使用 class pull-leftpull-right 来把元素向左或向右浮动。

m.代码如下:

<div class="pull-left">
向左快速浮动
</div>
<div class="pull-right">
向右快速浮动
</div>

n.内容居中

使用 class center-block 来居中元素。

o.示例代码如下:

 <div class="row">
<div class="center-block bg-success text-danger" style="width:200px;">
这是一个示例
</div>
</div>

p.清除浮动:

如需清除元素的浮动,请使用 .clearfix class。

q.代码如下:

<div class="bg-info clearfix">
<div class="bg-success pull-left">
向左快速浮动
</div> <div class="bg-danger pull-right">
向右快速浮动
</div> </div>

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfMAAAAkCAIAAAASIUQ/AAAFdUlEQVR4nO2dvY6jSBSF553ue5QFL2FBYl4BQWg/ABKOLadOYCZHjnuj3sSTt7RSq5MNdwOK+r2ATc+Ids05OskMUIUl9NXh1mXm24+Xtx9/aX9/efsPgiAIeip9f3kzYf4NZIcgCHp2gewQBEGhCWSHIAgKTSA7BEFQaALZIQiCQhPIDkEQFJrmyf7z/fWP9d///AvD8JP643b7Yw2yg+wwHKZXxyvI/kW9+qMJw/Bir45XkP2LevVHE4bhxV4dr89E9nYvaFfdgcUqpe1x6oRLGYmym72EH+e4o/R0/4xVSr2cGW13+SbKW5AdhoOwA7trISip7yNjnRFl9djR5iDEoXHOT87MIP5f3s6JPzJ/prqTnl32jLabIhbF9RNkv5SRj9S7KLmU7K8/T1uK8vb9UkY0qihvu8txL4i2R+ZMZ1jvhH6tAtlhOCB7OJ6AtbcG2KBcRPbbR52QKK635iDG2SWKa9OcC0GUnJkznWG9E/q1ahHZJ5GqwNoj+B5FeXvaUrRNIyISZcePb64ffkLnMrt+pVBHjzva7C/qkpm3DZAdhgMyw0Fforj2KL9HSf1RJySSTBCRODT8+Ob64Sd0LrPrVwp19JxQXDTqkpm3jcVkn8rpMlPfRV59yS4vox7rQ3Lv8o0M1yMzdvlmbKl4f233QkHcGKFKh8XDOMrdj6fN/rL6ownD8GLP53SZqRnCTl2SFAfRY31I7k0Ry3A9MmNTxJPrioK4MUKdDYuHcZS7H09x0fwmsvc8Hb2k3YvNvnKrMToy6xmPu/5Wt0cL/cbKMczenrYbmkvl0zZ+SB/2V380YRhe7CVk51jvcD8uarcaoyOznvEskZucLfQbmX2Y61onMc2l8mkbt92H/YfI7pVNVBHGITuX4p0yd3ry6uwc2Yd1QpF9NLObqb/d8+9WMrZzCT09gewwHJQNznplk56DLsfVdiWjuGiGAb06O0d2q/4+mdnN1D9WF5KxnUvoWf0LyG6wWHHQ5fjcVqc+TZSdSuWcZAA3ya7B7WT2mTBOXpz3qupG24/8yas/mjAML7ZNdoPFioMW2SXW2YxvVr3VaGcGs4NkADfJrsHtZPaZME5enPeq6kYFSf7k30B2+4/jXZJuZu95zVXDrZ6Zdi8oykuzSjP5rjB2A+yu7DA7yA7DT+9HyF5nRHHRjG1vsmS3wEpsNdzqmelbbg5mlWayCjRW8Wd3ZYfZF5KdC+AWT92i/N1kr1IS5UlX0jmyV+kwqeRyl2+MxaDfRJ16CVD3rAK7vnlzbwBkh+Gn9/3VGEXGRWSvMxKHWlfSObLX2TCpnKIpYmMx6DdRp14C1D2rwG4tS+p+Pp/ZuaTcB+qREscE2XXvij/CUISpUqMV0kzcQ9bmd3rtnhl1iSg7XbhPT05PpJxr9UcThuHFHs3s40n5cbLr3hWmC14WYazvnswphmH5nV67Z0ZdIg6NLtxntdMTKef6pb0xXb7xWmLuIHuV2kXw4470x6Jqt3O2mN6xeZ8ju9qJ1bftFHZkfl/90YRheLEX9MZMpGaO7HVGVhH8nJD+WFTtds4W0xs273NkVzuxKr8T2YUdmd8/Q3b1yb6M2zJHz36vpBtg+vILN/hpq6K03f44ol3lhn2jkWbuo1ldh9FNNVHe4kslGH5mj5Nd98A46Hwgs9dFzG631gkNUdpufxxRUrth32ikmftoVtdhdFONKK74F8GmvfqjCcPwYk8yMXCD7CA7DIfp1fEKsn9Rr/5owjC82KvjFWT/ol790YRheLFXx+uXJvva/1MrBEEQ9JhAdgiCoNAEskMQBIUmkB2CICg0gewQBEGhCWSHIAgKTSA7BEFQaALZIQiCQhPIDkEQFJocsv8PRbewzvhwkk8AAAAASUVORK5CYII=" alt="" />

r.隐藏内容与显示内容

通过使用 class .show.hidden 来强行设置元素显示或隐藏(包括屏幕阅读器)。

s.示例代码如下:

<div class="row bg-warning">
<div class="show bg-info">
这是一个show示例
</div> <div class="hidden bg-success">
这是一个show示例
</div>
</div>

t.屏幕阅读器

通过使用 class .sr-only 来把元素对所有设备隐藏,除了屏幕阅读器。

<form class="form-inline" role="form">
<div class="form-group">
<label class="sr-only" for="email">Email 地址</label>
<input type="email" class="form-control" placeholder="Enter email">
</div>
<div class="form-group">
<label class="sr-only" for="pass">密码</label>
<input type="password" class="form-control" placeholder="Password">
</div>

bootstrap基础学习八篇的更多相关文章

  1. bootstrap基础学习二篇

    这篇学习网格系统(Grid System) Bootstrap 提供了一套响应式.移动设备优先的流式网格系统,随着屏幕或视口(viewport)尺寸的增加,系统会自动分为最多12列. 1.网格选项: ...

  2. bootstrap基础学习五篇

    bootstrap表格 Bootstrap 提供了一个清晰的创建表格的布局.下表列出了 Bootstrap 支持的一些表格元素: 标签 描述 <table> 为表格添加基础样式. < ...

  3. bootstrap基础学习七篇

    bootstrap图片 Bootstrap 提供了三个可对图片应用简单样式的 class: .img-rounded:添加 border-radius:6px 来获得图片圆角. .img-circle ...

  4. bootstrap基础学习六篇

    bootstrap按钮 类 描述 .btn 为按钮添加基本样式 .btn-default 默认/标准按钮 .btn-primary 原始按钮样式(未被操作) .btn-success 表示成功的动作 ...

  5. bootstrap基础学习四篇

    bootstrap代码 Bootstrap 允许两种方式显示代码: 第一种是 <code> 标签.如果您想要内联显示代码,那么您应该使用 <code> 标签. 第二种是 < ...

  6. bootstrap基础学习三篇

    bootstrap的排版 1.标题 Bootstrap 中定义了所有的 HTML 标题(h1 到 h6)的样式 2.代码如下: <div class="container"& ...

  7. bootstrap基础学习一篇

    官网:http://www.bootcss.com/ 这里,主要讲解bootstrap3.关于他的介绍就不用复述了. 1.示例 <!doctype html> <html lang= ...

  8. bootstrap基础学习十一篇

    bootstrap下拉菜单(Dropdowns) 下拉菜单是可切换的,是以列表格式显示链接的上下文菜单.如需使用下列菜单,只需要在 class .dropdown 内加上下拉菜单即可. a.代码示例如 ...

  9. bootstrap基础学习十篇

    bootstrap字体图标(Glyphicons) a.什么是字体图标 字体图标是在 Web 项目中使用的图标字体.虽然,Glyphicons Halflings 需要商业许可,但是您可以通过基于项目 ...

随机推荐

  1. 查看客户端的IP地址,机器名,MAC地址,登陆名等信息

    查看客户端的IP地址,机器名,MAC地址,登陆名等信息 SELECT s.session_id,s.login_time,s.host_name,p.loginame,s.program_name,c ...

  2. js&jquery获取指定table指定行里面的内容

      js&jquery获取指定table指定行里面的内容 CreateTime--2018年5月18日11:46:04 Author:Marydon 1.展示 代码展示 <table s ...

  3. excel 截取单元格部分内容(从指定位置截取)

      excel 截取单元格部分内容(从指定位置截取) CreateTime--2018年5月28日08:28:46 Author:Marydon 1.情景展示 截取手机号后6位 2.实现 语法说明:r ...

  4. chrome 设置启动时打开特定一组网页

      chrome 设置启动时打开特定一组网页 CreateTime--2018年4月25日08:57:00 Author:Marydon 1.使用场景 经常有一些必用的网站,每天打开chrome都要依 ...

  5. dubbo初探(转载)

    1. Dubbo是什么? Dubbo是一个分布式服务框架,致力于提供高性能和透明化的RPC远程服务调用方案,以及SOA服务治理方案.简单的说,dubbo就是个服务框架,如果没有分布式的需求,其实是不需 ...

  6. HttpClient + PATCH support

    From - http://compiledexperience.com/blog/posts/patch-support-in-httpclient/ public static class Htt ...

  7. 【Linux】centos和ubuntu下php5安装redis2.24扩展

    1.服务器先安装redis-server,这是毋庸置疑的!!! 2.服务器开启redis-server,配置相关参数 3.配置好redis服务器后,再安装php的redis扩展phpredis. 一. ...

  8. MySQL-安全对调两个表名

    我们想要的是同时完成表名对调,如果是先后的对掉,用RENAME的话可能会导致有些数据写入失败,那怎么办? 其实也不难,从MySQL手册里就能找到方法,那就是:同时锁定2个表,不允许写入,然后对调表名. ...

  9. 卓有成效的团队建设经验与见解 Team Leader你会带团队吗?

    http://www.nowamagic.net/librarys/veda/detail/1955前言 这篇文章是写给Team Leader和往这个方向前进的人.也适合一般的程序员,对你们在团队合作 ...

  10. php保存快捷方式到桌面

    /** * 保存首页到桌面 */ public function save_shortcut() { $shortcut = "[DEFAULT] BASEURL=http://www.19 ...