首页 > 其他分享 >前端学习-UI框架学习-Bootstrap5-004-文字排版

前端学习-UI框架学习-Bootstrap5-004-文字排版

时间:2024-03-28 14:23:19浏览次数:18  
标签:h1 display Bootstrap 标题 WWF UI 004 Bootstrap5 Display

菜鸟教程链接

Bootstrap 5 默认设置

  • Bootstrap 5 默认的 font-size 为 16px, line-height 为 1.5
  • 默认的 font-family 为 "Helvetica Neue", Helvetica, Arial, sans-serif
  • 此外,所有的

    元素 margin-top: 0 、 margin-bottom: 1rem (16px)

h1-h6

<template>
  <div class="container">
    <h1>h1 Bootstrap 标题</h1>
    <h2>h2 Bootstrap 标题</h2>
    <h3>h3 Bootstrap 标题</h3>
    <h4>h4 Bootstrap 标题</h4>
    <h5>h5 Bootstrap 标题</h5>
    <h6>h6 Bootstrap 标题</h6>

    <p class="h1">h1 Bootstrap 标题</p>
    <p class="h2">h2 Bootstrap 标题</p>
    <p class="h3">h3 Bootstrap 标题</p>
    <p class="h4">h4 Bootstrap 标题 </p>
    <p class="h5">h5 Bootstrap 标题</p>
    <p class="h6">h6 Bootstrap 标题</p>
  </div>
</template>

display: .display-1, .display-2, .display-3, .display-4

<template>
  <div class="container">
    <h3>Display 标题</h3>
    <p>Display 标题可以输出更大更粗的字体样式。</p>
    <h3 class="display-1">Display 1</h3>
    <h3 class="display-2">Display 2</h3>
    <h3 class="display-3">Display 3</h3>
    <h3 class="display-4">Display 4</h3>
  </div>
</template>

高亮

<template>
  <div class="container">
    <h1>高亮文本</h1>    
    <p>使用 mark 元素来 <mark>高亮</mark> 文本。</p>
  </div>
</template>

文本底部虚线边框

<template>
  <div class="container">
    <h1>Abbreviations</h1>
    <p>The abbr element is used to mark up an abbreviation or acronym:</p>
    <p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>
  </div>
</template>

引用

<template>
  <div class="container">
    <h1>Blockquotes</h1>
    <p>The blockquote element is used to present content from another source:</p>
    <blockquote class="blockquote">
      <p>For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.</p>
      <footer class="blockquote-footer">From WWF's website</footer>
    </blockquote>
  </div>
</template>

dl

code

kbd

标签:h1,display,Bootstrap,标题,WWF,UI,004,Bootstrap5,Display
From: https://www.cnblogs.com/ayubene/p/18101285

相关文章

  • elementUI表单表头增加筛选
    1、增加过滤条件 2、定义数据,必须包含text以及value 3、使筛选的id与行内元素id一直进行筛选 4、对下拉icon大小更改 ......
  • ModuleNotFoundError: No module named ‘paddle.fluid.layers.utils‘关于paddle和pa
    训练模型时候发现的问题:1.ValueError:PretrainedConfiginstancenotfoundinthearguments,youcansetitasargsorkwargswithconfigfield2:ModuleNotFoundError:Nomodulenamed‘paddle.fluid.layers.utils‘对于第一个问题的发生,我先是检查uie-base,但是没......
  • 前端学习-UI框架学习-Bootstrap5-003-网格系统
    菜鸟教程链接Bootstrap提供了一套响应式、移动设备优先的流式网格系统,随着屏幕或视口(viewport)尺寸的增加,系统会自动分为最多12列规则网格每一行需要放在设置了.container(固定宽度)或.container-fluid(全屏宽度)类的容器中,这样就可以自动设置一些外边距与内边距。使......
  • Ant Design 设置必填属性的一个坑!Objects are not valid as a React child (found: ob
    1、刚开始,我是用第一种方式。通过一个变量,来设置必填属性的提示值 显示是没有问题的。但是点击ModalForm确认按钮时,报错ObjectsarenotvalidasaReactchild(found:objectwithkeys{requiredMsg}).Ifyoumeanttorenderacollectionofchildren,useanarray......
  • 软件测试技术分享丨uiautomator2详细使用方法
    本文转自测试人社区,原文链接:https://ceshiren.com/t/topic/53961.简介uiautomator2是一个自动化测试开源工具,仅支持android平台的自动化测试,其封装了谷歌自带的uiautomator2测试框架,可以运行在支持Python的任一系统上,目前版本为2.10.2开源库地址:https://github.com/ope......
  • 解决element-ui el-select数据过大方案
    一、背景项目中需要用到el-select选择医院,全国医院数据量非常大,通过API读取数据页面直接卡死。 二、解决方案1、组件:el-select+vue虚拟滚动(vue-virtual-scroll-list)2、安装:npminstallvue-virtual-scroll-list--save3、参考:NPM地址:https://www.npmjs.com/pack......
  • 推荐一个kafka可视化客户端GUI工具(Kafka King)
    KafkaKing,比较新,只需要填写kafka连接地址就行,不需要什么zookeeper。支持的功能也多:查看集群节点列表(完成)创建主题(支持批量)、删除主题、支持根据消费者组统计每个topic的消息积压量(完成)支持查看topic的分区的详细信息,并为主题添加额外的分区(完成)支持查看每个分区的消息offse......
  • 2004 年考研英语真题完型填空解析
    2004 年考研英语真题- 完型填空解析Manytheoriesconcerningthecausesofjuveniledelinquency(crimescommittedbyyoungpeople)focuseitherontheindividualoronsocietyasthemajorcontributinginfluence.[1]       翻译:关于少年违法犯罪(年轻人......
  • 2004 年考研英语真题 - 阅读 1 解析
    2004 年考研英语真题 - 阅读 1 解析Huntingforajoblatelastyear,lawyerGantRedmonstumbledacrossCareerBuilder,ajobdatabaseontheInternet.[1]         翻译:GantRedmon 律师去年年底找工作时,偶然在互联网上发现了一个职业数据库——“Care......
  • 2004 年考研英语真题 - 阅读 2 解析
    2004年考研英语真题-阅读2解析Overthepastcentury,allkindsofunfairnessanddiscriminationhavebeencondemnedormadeillegal.[1]翻译:在上个世纪中,各种不公和歧视都被宣判或被定为非法。1.Overthepastcentury, 介词短语作时间状语。2.allkindsof ......