当前位置: 首页 > news >正文

宁夏微信服务网站百度网盘资源搜索

宁夏微信服务网站,百度网盘资源搜索,网站建设的前后台代码,专注集团网站建设Bootstrap V4系列 学习入门教程之 表格(Tables)和画像(Figure) 表格(Tables)一、Examples二、Table head options 表格头选项三、Striped rows 条纹行四、Bordered table 带边框的表格五、Borderless table…

Bootstrap V4系列 学习入门教程之 表格(Tables)和画像(Figure)

  • 表格(Tables)
    • 一、Examples
    • 二、Table head options 表格头选项
    • 三、Striped rows 条纹行
    • 四、Bordered table 带边框的表格
    • 五、Borderless table 无边框表格
    • 六、Hoverable rows 可悬停行
    • 七、Contextual classes 情境类
  • 画像(Figure)

表格(Tables)

一、Examples

由于表格在日历和日期选择器等第三方小部件中的广泛使用,我们将表格设计为可选择加入。只需将基类.table添加到任何<table>中,然后使用自定义样式或我们包含的各种修饰符类进行扩展。

使用最基本的表标记,以下是Bootstrap中基于.table的表的外观。Bootstrap 4继承了所有表样式,这意味着任何嵌套表都将以与父表相同的方式进行样式设置。

<table class="table"><thead><tr><th scope="col">#</th><th scope="col">First</th><th scope="col">Last</th><th scope="col">Handle</th></tr></thead><tbody><tr><th scope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><th scope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><th scope="row">3</th><td>Larry</td><td>the Bird</td><td>@twitter</td></tr></tbody>
</table>

页面展示效果:
在这里插入图片描述
您还可以使用.table-dark反转颜色——在深色背景上使用浅色文本。

<table class="table table-dark"><thead><tr><th scope="col">#</th><th scope="col">First</th><th scope="col">Last</th><th scope="col">Handle</th></tr></thead><tbody><tr><th scope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><th scope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><th scope="row">3</th><td>Larry</td><td>the Bird</td><td>@twitter</td></tr></tbody>
</table>

页面展示效果:
在这里插入图片描述

二、Table head options 表格头选项

与表格和深色表格类似,使用修饰符类.thead-light.thead-dark使<thead>显示为浅灰色或深灰色。

<table class="table"><thead class="thead-dark"><tr><th scope="col">#</th><th scope="col">First</th><th scope="col">Last</th><th scope="col">Handle</th></tr></thead><tbody>...</tbody>
</table>  

页面展示效果:
在这里插入图片描述

三、Striped rows 条纹行

使用.table-striped<tbody>中的任何表行添加斑马条纹。

<table class="table table-striped"><thead><tr><th scope="col">#</th><th scope="col">First</th><th scope="col">Last</th><th scope="col">Handle</th></tr></thead><tbody><tr><th scope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><th scope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><th scope="row">3</th><td>Larry</td><td>the Bird</td><td>@twitter</td></tr></tbody>
</table>

页面展示效果:
在这里插入图片描述

四、Bordered table 带边框的表格

为表格和单元格的所有侧面添加边框。

<table class="table table-bordered"><thead><tr><th scope="col">#</th><th scope="col">First</th><th scope="col">Last</th><th scope="col">Handle</th></tr></thead><tbody><tr><th scope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><th scope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><th scope="row">3</th><td colspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody>
</table>

页面展示效果:
在这里插入图片描述

五、Borderless table 无边框表格

为无边框的表格添加.table-borderless

<table class="table table-borderless"><thead><tr><th scope="col">#</th><th scope="col">First</th><th scope="col">Last</th><th scope="col">Handle</th></tr></thead><tbody><tr><th scope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><th scope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><th scope="row">3</th><td colspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody>
</table>

页面展示效果:
在这里插入图片描述

六、Hoverable rows 可悬停行

添加.table-hover以在<tbody>内的表行上启用悬停状态。

<table class="table table-hover"><thead><tr><th scope="col">#</th><th scope="col">First</th><th scope="col">Last</th><th scope="col">Handle</th></tr></thead><tbody><tr><th scope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><th scope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><th scope="row">3</th><td colspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody>
</table>

页面展示效果:
在这里插入图片描述

七、Contextual classes 情境类

<div class="bd-example"><table class="table"><thead><tr><th scope="col">Class</th><th scope="col">Heading</th><th scope="col">Heading</th></tr></thead><tbody><tr class="table-active"><th scope="row">Active</th><td>Cell</td><td>Cell</td></tr><tr><th scope="row">Default</th><td>Cell</td><td>Cell</td></tr><tr class="table-primary"><th scope="row">Primary</th><td>Cell</td><td>Cell</td></tr><tr class="table-secondary"><th scope="row">Secondary</th><td>Cell</td><td>Cell</td></tr><tr class="table-success"><th scope="row">Success</th><td>Cell</td><td>Cell</td></tr><tr class="table-danger"><th scope="row">Danger</th><td>Cell</td><td>Cell</td></tr><tr class="table-warning"><th scope="row">Warning</th><td>Cell</td><td>Cell</td></tr><tr class="table-info"><th scope="row">Info</th><td>Cell</td><td>Cell</td></tr><tr class="table-light"><th scope="row">Light</th><td>Cell</td><td>Cell</td></tr><tr class="table-dark"><th scope="row">Dark</th><td>Cell</td><td>Cell</td></tr></tbody></table>
</div>

页面展示效果:
在这里插入图片描述

画像(Figure)

通过 Bootstrap 的画像(figure)组件来显示相关联的图片和文本。

任何时候需要显示一段内容(例如带有可选标题的图片),请使用 <figure> 标签。

.figure、.figure-img.figure-caption 类为 HTML5 的 <figure><figcaption> 元素提供了一些基本样式。<figure> 标签内所包含的图片如果没有明确地设置尺寸的话,请务必为 <img>标签添加 .img-fluid 类,使其支持响应式布局。

<!--任何时候需要显示一段内容(例如带有可选标题的图片),请使用 <figure> 标签。 -->
<figure class="figure"><img src="../images/1.jpg" class="figure-img img-fluid rounded" alt="..."><figcaption class="figure-caption">A caption for the above image.</figcaption></figure>

页面展示效果:
在这里插入图片描述
通过使用我们提供的 文本工具类 可以轻松对齐 <figure> 所包含的标题。

<!--通过使用我们提供的 文本工具类 可以轻松对齐 <figure> 所包含的标题。-->
<figure class="figure"><img src="../images/1.jpg" class="figure-img img-fluid rounded" alt="..."><figcaption class="figure-caption text-right">A caption for the above image.</figcaption>
</figure>

页面展示效果:
在这里插入图片描述

http://www.dtcms.com/a/428182.html

相关文章:

  • 手机做网站用什么软件微信下载官方正版
  • Redis缓存异常
  • 建设网站iss局机关门户网站建设情况汇报
  • 做网站需要哪些东西163免费注册入口
  • 【Rust GUI开发入门】编写一个本地音乐播放器(9. 制作设置面板)
  • 概率统计中的数学语言与术语2
  • 美国2025年网络演习全景与趋势洞察
  • 公司做网站有什么用编程和做网站那个号
  • 做公司网站都需要什么免费广告设计网站
  • IO-link 协议高频工业 RFID 读写器
  • NeurIPS 2025 | 北大等提出C²Prompt:解耦类内与类间知识,攻克FCL遗忘难题!
  • 网站推广有哪些举措全屋定制品牌推荐
  • 1元建站wordpress短代码返回html
  • 极简学习工具产品蓝图、路线图、甘特图、交付清单
  • 为网站设计手机版深圳工业设计公司哪家好
  • 定制网站建设济南开发app需要哪些审批
  • 古老的游戏(游戏的娱乐属性)
  • 先进网站建设流程洛宁网站建设
  • 网站开发示例网页广告如何关闭
  • 免费的行情网站app软件大全母婴网站设计分析
  • 四川网站网页设计网站维护 北京
  • 手撕ArrayList,ArrayList底层原理是什么,它是怎么扩容的?
  • 防静电产品东莞网站建设技术支持张家港保税区建设局网站
  • 基于o2o的旅游网站建设手机网站菜单网页怎么做
  • FLASK与JAVA的文件互传并带参数以及流上传(单文件互传亲测)
  • 新发布一个网站公告怎么做平面设计工资
  • 内网穿透系列十四:基于Websocket传输协议实现的异地组网工具 candy,简单安全稳定
  • 国外做图标网站时代汇创网站建设
  • 唐山专业做网站什么是网页和网站
  • yolov13推理示例