页眉(Page Header)

优质
小牛编辑
123浏览
2023-12-01

页眉是一个很好的小功能,可以在页面上的标题周围添加适当的间距。 这对于您可能拥有多个帖子标题的网页尤其有用,并且需要一种方法来为每个帖子添加区别。 要使用页眉,请将您的标题包装在带有.page-header类的<div>中 -

<div class = "page-header">
   <h1>
      Example page header 
      <small>Subtext for header</small>
   </h1>
</div>
<p>This is a sample text.This is a sample text.This is a sample text. This is a sample text.</p>