Bootstrap 3.3.7学习笔记4
来源:互联网 发布:药物研发管理 软件 编辑:程序博客网 时间:2024/05/22 09:39
Bootstrap 3.3.7学习笔记4
text以及background辅助class
.text-left { text-align: left;}.text-right { text-align: right;}.text-center { text-align: center;}.text-justify { text-align: justify;}.text-nowrap { white-space: nowrap;}.text-lowercase { text-transform: lowercase;}.text-uppercase { text-transform: uppercase;}.text-capitalize { text-transform: capitalize;}.text-muted { color: #777;}.text-primary { color: #337ab7;}a.text-primary:hover,a.text-primary:focus { color: #286090;}.text-success { color: #3c763d;}a.text-success:hover,a.text-success:focus { color: #2b542c;}.text-info { color: #31708f;}a.text-info:hover,a.text-info:focus { color: #245269;}.text-warning { color: #8a6d3b;}a.text-warning:hover,a.text-warning:focus { color: #66512c;}.text-danger { color: #a94442;}a.text-danger:hover,a.text-danger:focus { color: #843534;}.bg-primary { color: #fff; background-color: #337ab7;}a.bg-primary:hover,a.bg-primary:focus { background-color: #286090;}.bg-success { background-color: #dff0d8;}a.bg-success:hover,a.bg-success:focus { background-color: #c1e2b3;}.bg-info { background-color: #d9edf7;}a.bg-info:hover,a.bg-info:focus { background-color: #afd9ee;}.bg-warning { background-color: #fcf8e3;}a.bg-warning:hover,a.bg-warning:focus { background-color: #f7ecb5;}.bg-danger { background-color: #f2dede;}a.bg-danger:hover,a.bg-danger:focus { background-color: #e4b9b9;}
知识点:
- 控制文字颜色的helper class们
- .text-muted
- .text-primary
- .text-success
- .text-info
- .text-warning
- .text-danger
控制背景颜色的helper class们
.bg-primary .bg-success .bg-info .bg-warning .bg-danger- 以上说的这些类如果在anchor标签<a>中出现的话,还会有一些不一样的颜色表现。
- 值得注意的是只有在深蓝色的bg-primary当中更改了文字的颜色,让其更加醒目。
- 控制文字大小写的helper class们
- .text-lowercase
- .text-uppercase
- .text-capitalize
- 控制文本布局的helper class们
- .text-left: 靠左对齐
- .text-righ: 靠右对齐
- .text-center: 中间对齐
- .text-justify: 两端对齐,只对IE有效,没有请自实验过。
- .text-nowrap: 文字不允许换行
阅读全文
0 0
- Bootstrap 3.3.7学习笔记4
- BootStrap学习笔记-7
- BootStrap学习笔记-4
- Bootstrap 3.3.7学习笔记7
- Bootstrap 3.3.7学习笔记1
- Bootstrap 3.3.7学习笔记2
- Bootstrap 3.3.7学习笔记3
- Bootstrap 3.3.7学习笔记5
- Bootstrap 3.3.7学习笔记6
- Bootstrap 3.3.7学习笔记8
- Bootstrap 3.3.7学习笔记9
- Bootstrap 3.3.7学习笔记10
- Bootstrap 3.3.7学习笔记11
- Bootstrap 3.3.7学习笔记12
- Bootstrap 3.3.7学习笔记13
- Bootstrap 3.3.7学习笔记14
- Bootstrap 3.3.7学习笔记15
- 学习笔记4-bootstrap的栅格系统
- 史上最详尽平衡树(splay树)讲解
- Spring Boot 入门篇
- C学习笔记
- 线段树求面积 HDU 1542 HDU 1255
- LayerClose弹窗关闭刷新
- Bootstrap 3.3.7学习笔记4
- Eclipse插件 JAVA ResourceBundle Editor安装
- 数据结构课程设计-表达式求值
- plsql注册码激活
- Activity栈管理
- 进程等待及子进程异步等待方式
- 测试执行结果篇
- 词典查一查
- 基于keras的深度学习基本概念讲解——深度学习之从小白到入门