首页 > 其他分享 >bootstrap5 网格

bootstrap5 网格

时间:2022-10-31 16:36:05浏览次数:59  
标签:睡眠 离线 网格 701 传感器 bootstrap5 树荫 影像

 

 

 <link href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script>
<style>
        .container {
            max-width: 100%;
            padding: var(--bs-gutter-x,.75rem);
            font-size: .875rem;
        }

        .title {
            width: 100%;
            height: 2rem;
            line-height: 2rem;
            padding: 0 .5rem 0 .5rem;
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
        }


        .status {
            height: 1.4rem;
            margin-top: .3rem;
            margin:auto
        }

        .offLineInit {
            position: absolute;
            left: 50%;
            top: 20%;
            transform: translate(-50%,0);
        }
        .p-3 {
            padding: 0 !important;
        }
        .content{
            position:relative;
            height:8rem
        }
    </style>
<div class="container">
        <div class="row g-3  ">
            <div class="col-3 col-md-3 col-lg-3">
                <div class="p-3 border box">
                    <div class="title">
                        <span>软树荫-701</span>
                        <img src="~/Content/img/assets/offline.png" class="status" />
                        <div style="display:inline-block;">
                            <button type="button" class="btn btn-light btn-sm">影像</button>
                            <button type="button" class="btn btn-light btn-sm">对讲</button>
                        </div>
                    </div>
                    <div class="content">
                        <i class="offLineInit">睡眠传感器离线</i>
                    </div>
                </div>
            </div>
            <div class="col-3 col-md-3 col-lg-3">
                <div class="p-3 border box">
                    <div class="title">
                        <span>软树荫-701</span>
                        <img src="~/Content/img/assets/offline.png" class="status" />
                        <div style="display:inline-block;">
                            <button type="button" class="btn btn-light btn-sm">影像</button>
                            <button type="button" class="btn btn-light btn-sm">对讲</button>
                        </div>
                    </div>
                    <div class="content">
                        <i class="offLineInit">睡眠传感器离线</i>
                    </div>
                </div>
            </div>
            <div class="col-3 col-md-3 col-lg-3">
                <div class="p-3 border box">
                    <div class="title">
                        <span>软树荫-701</span>
                        <img src="~/Content/img/assets/offline.png" class="status" />
                        <div style="display:inline-block;">
                            <button type="button" class="btn btn-light btn-sm">影像</button>
                            <button type="button" class="btn btn-light btn-sm">对讲</button>
                        </div>
                    </div>
                    <div class="content">
                        <i class="offLineInit">睡眠传感器离线</i>
                    </div>
                </div>
            </div>
            <div class="col-3 col-md-3 col-lg-3">
                <div class="p-3 border box">
                    <div class="title">
                        <span>软树荫-701</span>
                        <img src="~/Content/img/assets/offline.png" class="status" />
                        <div style="display:inline-block;">
                            <button type="button" class="btn btn-light btn-sm">影像</button>
                            <button type="button" class="btn btn-light btn-sm">对讲</button>
                        </div>
                    </div>
                    <div class="content">
                        <i class="offLineInit">睡眠传感器离线</i>
                    </div>
                </div>
            </div>
            <div class="col-3 col-md-3 col-lg-3">
                <div class="p-3 border box">
                    <div class="title">
                        <span>软树荫-701</span>
                        <img src="~/Content/img/assets/offline.png" class="status" />
                        <div style="display:inline-block;">
                            <button type="button" class="btn btn-light btn-sm">影像</button>
                            <button type="button" class="btn btn-light btn-sm">对讲</button>
                        </div>
                    </div>
                    <div class="content">
                        <i class="offLineInit">睡眠传感器离线</i>
                    </div>
                </div>
            </div>
            <div class="col-3 col-md-3 col-lg-3">
                <div class="p-3 border box">
                    <div class="title">
                        <span>软树荫-701</span>
                        <img src="~/Content/img/assets/offline.png" class="status" />
                        <div style="display:inline-block;">
                            <button type="button" class="btn btn-light btn-sm">影像</button>
                            <button type="button" class="btn btn-light btn-sm">对讲</button>
                        </div>
                    </div>
                    <div class="content">
                        <i class="offLineInit">睡眠传感器离线</i>
                    </div>
                </div>
            </div>
            <div class="col-3 col-md-3 col-lg-3">
                <div class="p-3 border box">
                    <div class="title">
                        <span>软树荫-701</span>
                        <img src="~/Content/img/assets/offline.png" class="status" />
                        <div style="display:inline-block;">
                            <button type="button" class="btn btn-light btn-sm">影像</button>
                            <button type="button" class="btn btn-light btn-sm">对讲</button>
                        </div>
                    </div>
                    <div class="content">
                        <i class="offLineInit">睡眠传感器离线</i>
                    </div>
                </div>
            </div>
            <div class="col-3 col-md-3 col-lg-3">
                <div class="p-3 border box">
                    <div class="title">
                        <span>软树荫-701</span>
                        <img src="~/Content/img/assets/offline.png" class="status" />
                        <div style="display:inline-block;">
                            <button type="button" class="btn btn-light btn-sm">影像</button>
                            <button type="button" class="btn btn-light btn-sm">对讲</button>
                        </div>
                    </div>
                    <div class="content">
                        <i class="offLineInit">睡眠传感器离线</i>
                    </div>
                </div>
            </div>
            <div class="col-3 col-md-3 col-lg-3">
                <div class="p-3 border box">
                    <div class="title">
                        <span>软树荫-701</span>
                        <img src="~/Content/img/assets/offline.png" class="status" />
                        <div style="display:inline-block;">
                            <button type="button" class="btn btn-light btn-sm">影像</button>
                            <button type="button" class="btn btn-light btn-sm">对讲</button>
                        </div>
                    </div>
                    <div class="content">
                        <i class="offLineInit">睡眠传感器离线</i>
                    </div>
                </div>
            </div>
        </div>
    </div>

 

说明:col-3  表示一个占3列,默认总共12列

标签:睡眠,离线,网格,701,传感器,bootstrap5,树荫,影像
From: https://www.cnblogs.com/ljingjing/p/16844800.html

相关文章

  • Istio(十一):向istio服务网格中引入虚拟机
    目录一.模块概览二.系统环境三.虚拟机负载3.1虚拟机负载3.2单网络架构3.3多网络架构3.4Istio中如何表示虚拟机工作负载?四.实战:向istioMesh中引入虚拟机4.1将虚拟机......
  • 使用Three.js 心得系列一 如何创建三维网格三、使用Three.js 心得系列三 Three.js 如
    一、使用Three.js心得系列一如何创建三维网格二、使用Three.js心得系列二如何改变三维场景的GlTF模型的位置三、使用Three.js心得系列三Three.js如何加载GlTF文件 ......
  • Istio(五):使用服务网格Istio进行流量路由
    目录一.模块概览二.系统环境三.简单路由3.1简单路由四.Subset和DestinationRule4.1Subset和DestinationRule4.2DestinationRule中的流量策略4.2.1负载均衡器设置4.2......
  • 1659. 最大化网格幸福感
    题目描述f1-记忆化搜索+轮廓线状态压缩基本分析轮廓线状态压缩的场景?在一个二维矩阵上进行动态规划+数据规模不大+可以通过当前位置与其左上方位置+左侧位置计算转移方......
  • android实现网格布局
    效果图  添加依赖implementation'com.github.mtjsoft:GridPager:v3.7.0'layout文件<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="h......
  • Material Design基础 - 响应式布局网格
    响应式布局网格MaterialDesign的响应式布局网格可根据屏幕大小和方向进行调整,确保布局的一致性。Columns,gutters,andmargins响应式布局网格由三个元素组成:Columns,......
  • puzzle(103.1)网格图一笔画
    目录​​一,一笔画完(网格图带起点)​​​​二,网格图不带起点​​​​三,六边形网格图​​一,一笔画完(网格图带起点)一笔画完(微信小程序游戏):这个游戏和我攻略过的另外2个游戏相关......
  • ansa修补k文件曲面以及重设网格大小
    原始文件缺陷;有三角空洞,竖边。1、导入k文件后第一步应该先测量下网格大小正常不,因为我们需要在各种软件之间进行切换,另外ansa的单位一般是mm  2、更新模型,直到单位正......
  • 网格搜索(GridSearchCV)--用于深度学习超参数搜索
    GridSearch和CV,即网格搜索和交叉验证网格搜索算法是一种通过遍历给定的参数组合来优化模型表现的方法为何使用:超参数选择不恰当,就会出现欠拟合或者过拟合的问题内容:网......
  • 气象NC扇形经纬网格转换成前端要求的等经纬网格_cwr888的博客
    气象NC扇形经纬网格转换成前端leaflet-vector-scalar.js要求的等经纬网格背景:最近从气象局拿到文件格式为NC的气象文件(包括温度、湿度、风、气压、雨量等),需要读取其中的......