标题。样式:class="h1"~class="h6"

bootstrap中重新定义了h1~h6标签,具体差别如下:

 

在bootstrap中其他任何标签使用class="h1"~class="h6"都可以实现h1~h6的标题效果。

<!--Bootstrap中的标题-->
<h1>Bootstrap标题一</h1>
<h2>Bootstrap标题二</h2>
<h3>Bootstrap标题三</h3>
<h4>Bootstrap标题四</h4>
<h5>Bootstrap标题五</h5>
<h6>Bootstrap标题六</h6>

<!--Bootstrap中让非标题元素和标题使用相同的样式-->
<div class="h1">Bootstrap标题一</div>
<div class="h2">Bootstrap标题二</div>
<div class="h3">Bootstrap标题三</div>
<div class="h4">Bootstrap标题四</div>
<div class="h5">Bootstrap标题五</div>
<div class="h6">Bootstrap标题六</div>

<p class="h1">title</p>
View Code

相关文章:

  • 2021-08-13
  • 2022-12-23
  • 2021-09-04
  • 2021-11-24
  • 2022-02-27
  • 2022-12-23
  • 2021-12-04
  • 2021-05-15
猜你喜欢
  • 2021-05-22
  • 2021-12-27
  • 2021-11-17
  • 2021-07-28
  • 2021-12-12
  • 2022-01-15
相关资源
相似解决方案