bootstrap 粗体;斜体;强调相关类;文本对其

(四)粗体
可以使用标签让文本直接加粗




粗体



我在学习Bootstrap,我要掌握Bootstrap的所有知识。



我是一个段落,这个段落中“强调”一词将会加粗显示。





五(斜体)
在Bootstrap中还可以通过使用标签来实现




斜体



我在慕课网上跟大漠一起学习Bootstrap的使用。我一定要学会Bootstrap



我正在学习Bootstrap。我发现Bootstrap真的好强大。




六(强调相关类)
Bootstrap还定义了一套类名,这里称其为强调类名(类似前面说的“.lead”),这些强调类都是通过颜色来表示强调,具本说明如下:

.text-muted:提示,使用浅灰色(#999)
.text-primary:主要,使用蓝色(#428bca)
.text-success:成功,使用浅绿色(#3c763d)
.text-info:通知信息,使用浅蓝色(#31708f)
.text-warning:警告,使用黄色(#8a6d3b)
.text-danger:危险,使用褐色(#a94442)





强调相关的类




.text-muted 效果

.text-primary效果

.text-success效果

.text-info效果

.text-warning效果

.text-danger效果


我是一段危险信息,请用Bootstrap框架中的危险风格显示



七(文本对其)
Bootstrap通过定义四个类名来控制文
 .text-left:左对齐  .text-center:居中对齐   .text-right:右对齐  .text-justify:两端对齐
 
 



文本对齐风格



我居左


我居中


我居右


There is clearly a need for CSS to be taken seriously by graphic artists. The Zen Garden aims to excite, inspire, and encourage participation. To begin, view some of the existing designs in the list. Clicking on any one will load the style sheet into this very page. The code remains the same, the only thing that has changed is the external .css file.



给我加个类,我就向右对齐。



你可能感兴趣的:(bootstrap)