首页 > 其他分享 >Bootstrap4实现简单缺陷列表页面

Bootstrap4实现简单缺陷列表页面

时间:2023-08-04 11:34:42浏览次数:39  
标签:... 简要 supporting -- text 列表 Bootstrap4 card 页面

缺陷列表

image

实现代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>缺陷列表</title>
    <!-- CSS -->
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.2/css/bootstrap.min.css" rel="stylesheet"
          integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
</head>
<body>
<div id="content" class="container">
    <div class="card shadow rounded mt-5">
        <div class="card-body" >

            <table class="table table-hover table-sm mt-5">
                <thead>
                <tr>
                    <th scope="col">ID</th>
                    <th scope="col">标题</th>
                    <th scope="col">发现版本</th>
                    <th scope="col">严重程度</th>
                    <th scope="col">优先级</th>
                    <th scope="col">状态</th>
                    <th scope="col">处理人</th>
                    <th scope="col">创建时间</th>
                    <th scope="col">创建人</th>
                    <th scope="col">解决方法</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>1005690</td>
                    <td><a href="#" class="badge badge-danger">BUG</a> 缺陷1</td>
                    <td>v1.0.0</td>
                    <td><a href="#" class="text-info small text-decoration-none"><i class="bi bi-circle-fill"></i> 一般</a>
                    </td>
                    <td><a href="#" class="badge badge-success">中</a></td>
                    <td><a href="#" class="badge badge-pill badge-info">新</a></td>
                    <td>张三</td>
                    <td>2023-06-07 16:02</td>
                    <td>韩超</td>
                    <td>-</td>
                </tr>
                <tr>
                    <td>1005691</td>
                    <td><a href="#" class="badge badge-danger">BUG</a> 缺陷2</td>
                    <td>v1.0.0</td>
                    <td><a href="#" class="text-secondary small text-decoration-none"><i class="bi bi-circle-fill"></i>
                        微小</a></td>
                    <td><a href="#" class="badge badge-secondary">低</a></td>
                    <td><a href="#" class="badge badge-pill badge-warning">已拒绝</a></td>
                    <td>Kevin</td>
                    <td>2023-06-07 16:02</td>
                    <td>芳芳</td>
                    <td>-</td>
                </tr>
                <tr>
                    <td>1005692</td>
                    <td><a href="#" class="badge badge-danger">BUG</a> 缺陷3</td>
                    <td>v1.0.0</td>
                    <td><a href="#" class="text-danger small text-decoration-none"><i class="bi bi-circle-fill"></i></i>
                        严重</a></td>
                    <td><a href="#" class="badge badge-danger">高</a></td>
                    <td><a href="#" class="badge badge-pill badge-primary">已解决</a></td>
                    <td>Kevin</td>
                    <td>2023-06-07 16:02</td>
                    <td>六六</td>
                    <td>已修改</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>


<!-- jQuery and JavaScript Bundle with Popper -->
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.slim.js"
        integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
        crossorigin="anonymous"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.2/js/bootstrap.bundle.min.js"
        integrity="sha384-7ymO4nGrkm372HoSbq1OY2DP4pEZnMiA+E0F3zPr+JQQtQ82gQ1HPY3QIVtztVua"
        crossorigin="anonymous"></script>
</body>
</html>

卡片列表

image

实现代码

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>缺陷列表</title>
    <!-- CSS -->
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.2/css/bootstrap.min.css" rel="stylesheet"
          integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
    <style>
        .shadow-hover:hover {
            box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
        }

        .shadow-hover-sm:hover {
            box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important
        }
    </style>
</head>
<body>
<div id="content" class="container">
    <h6 class="mt-5">分类1</h6>
    <div class="row row-cols-3 row-cols-md-4 mt-3">
        <div class="col mb-4">
            <div class="card shadow-hover">
                <div class="card-body">
                    <h6 class="card-title"><a href="#" class="text-decoration-none"><span
                            class="badge badge-danger">B</span> 打不开我的世界列表</a></h6>
                    <p class="card-text small  text-secondary">This is a longer card with supporting text below as a
                        natural lead-in to</p>
                </div>
            </div>
        </div>
        <div class="col mb-4">
            <div class="card shadow-hover">
                <div class="card-body">
                    <h6 class="card-title"><a href="#" class="text-decoration-none"><span
                            class="badge badge-danger">B</span> 时间格式不正确</a></h6>
                    <p class="card-text small text-secondary">This is a longer card with supporting text below as a
                        natural lead-in to</p>
                </div>
            </div>
        </div>
        <div class="col mb-4">
            <div class="card shadow-hover">
                <div class="card-body">
                    <h6 class="card-title"><a href="#" class="text-decoration-none"><span
                            class="badge badge-danger">B</span> 列表页显示为空</a></h6>
                    <p class="card-text small text-secondary">This is a longer card with supporting text below as a
                        natural lead-in to</p>
                </div>
            </div>
        </div>
        <div class="col mb-4">
            <div class="card  shadow-hover">
                <div class="card-body">
                    <h6 class="card-title"><a href="#" class="text-decoration-none"><span
                            class="badge badge-danger">B</span> 详情页面包502</a></h6>
                    <p class="card-text small text-secondary">This is a longer card with supporting text below as a
                        natural lead-in to</p>
                </div>
            </div>
        </div>
        <div class="col mb-4">
            <div class="card shadow-hover">
                <div class="card-body">
                    <h6 class="card-title"><a href="#" class="text-decoration-none"><span
                            class="badge badge-danger">B</span> 列表页显示为空</a></h6>
                    <p class="card-text small text-secondary">This is a longer card with supporting text below as a
                        natural lead-in to</p>
                </div>
            </div>
        </div>
        <div class="col mb-4">
            <div class="card  shadow-hover">
                <div class="card-body">
                    <h6 class="card-title"><a href="#" class="text-decoration-none"><span
                            class="badge badge-danger">B</span> 详情页面包502</a></h6>
                    <p class="card-text small text-secondary">This is a longer card with supporting text below as a
                        natural lead-in to</p>
                </div>
            </div>
        </div>
    </div>
    <h6 class="mt-5">分类2</h6>

    <div class="row row-cols-3 row-cols-md-4 mt-3">
        <div class="col mb-4">
            <div class="card shadow-hover">
                <div class="card-body">
                    <h6 class="card-title"><a href="#" class="text-decoration-none"><span
                            class="badge badge-danger">B</span> 打不开我的世界列表</a></h6>
                    <p class="card-text small  text-secondary">This is a longer card with supporting text below as a
                        natural lead-in to</p>
                </div>
            </div>
        </div>
        <div class="col mb-4">
            <div class="card shadow-hover">
                <div class="card-body">
                    <h6 class="card-title"><a href="#" class="text-decoration-none"><span
                            class="badge badge-danger">B</span> 时间格式不正确</a></h6>
                    <p class="card-text small text-secondary">This is a longer card with supporting text below as a
                        natural lead-in to</p>
                </div>
            </div>
        </div>
        <div class="col mb-4">
            <div class="card shadow-hover">
                <div class="card-body">
                    <h6 class="card-title"><a href="#" class="text-decoration-none"><span
                            class="badge badge-danger">B</span> 列表页显示为空</a></h6>
                    <p class="card-text small text-secondary">This is a longer card with supporting text below as a
                        natural lead-in to</p>
                </div>
            </div>
        </div>
    </div>

</div>


<!-- jQuery and JavaScript Bundle with Popper -->
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.slim.js"
        integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
        crossorigin="anonymous"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.2/js/bootstrap.bundle.min.js"
        integrity="sha384-7ymO4nGrkm372HoSbq1OY2DP4pEZnMiA+E0F3zPr+JQQtQ82gQ1HPY3QIVtztVua"
        crossorigin="anonymous"></script>
</body>
</html>

看板视图

image

实现代码

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>缺陷列表</title>
    <!-- CSS -->
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.2/css/bootstrap.min.css" rel="stylesheet"
          integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
    <style>
        .shadow-hover:hover {
            box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
        }
        .shadow-hover-sm:hover {
            box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important
        }
    </style>
</head>
<body>
<div id="content" class="container">
    <div class="card-deck mt-5">
        <div class="card bg-light">
            <div class="card-body">
                <h6 class="card-title">新 <span class="badge badge-pill badge-info">4</span></h6>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">【税总】增加trustroot</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-primary">Normal</a>
                        </div>
                    </div>
                </div>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">v2.3.1功能合并</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-danger">High</a>
                        </div>
                    </div>
                </div>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">【税总】需求1-sdk开发</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-warning">Low</a>
                        </div>
                    </div>
                </div>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">bugs修复</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-info">High</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="card bg-light">
            <div class="card-body">
                <h6 class="card-title">处理中 <span class="badge badge-pill badge-info">6</span></h6>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">【税总】增加trustroot</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-primary">Normal</a>
                        </div>
                    </div>
                </div>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">v2.3.1功能合并</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-danger">High</a>
                        </div>
                    </div>
                </div>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">v2.3.1功能合并2</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-danger">High</a>
                        </div>
                    </div>
                </div>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">【税总】需求1-sdk开发</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-warning">Low</a>
                        </div>
                    </div>
                </div>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">v2.3.1功能合并</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-danger">High</a>
                        </div>
                    </div>
                </div>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">bugs修复</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-info">High</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="card bg-light">
            <div class="card-body">
                <h6 class="card-title">已解决 <span class="badge badge-pill badge-info">4</span></h6>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">【税总】增加trustroot</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-primary">Normal</a>
                        </div>
                    </div>
                </div>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">v2.3.1功能合并</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-danger">High</a>
                        </div>
                    </div>
                </div>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">【税总】需求1-sdk开发</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-warning">Low</a>
                        </div>
                    </div>
                </div>
                <div class="card shadow-hover-sm mt-2">
                    <div class="card-body">
                        <h6 class="card-title">bugs修复</h6>
                        <div class="card-text small text-secondary">需求简要描述,...</div>
                        <div class="card-text text-right">
<!--                            <a href="#" class="text-left text-large"><i class="bi bi-person-circle"></i></a>-->
                            <a href="#" class="badge badge-info">High</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- jQuery and JavaScript Bundle with Popper -->
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.slim.js"
        integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
        crossorigin="anonymous"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.2/js/bootstrap.bundle.min.js"
        integrity="sha384-7ymO4nGrkm372HoSbq1OY2DP4pEZnMiA+E0F3zPr+JQQtQ82gQ1HPY3QIVtztVua"
        crossorigin="anonymous"></script>
</body>
</html>

标签:...,简要,supporting,--,text,列表,Bootstrap4,card,页面
From: https://www.cnblogs.com/superhin/p/bootstrap4-bug-lit.html

相关文章

  • 使用Cloud Studio快速构建React完成点餐H5页面还原
    一、前言IDE(集成开发环境)是一种软件工具,旨在为开发者提供一个集成的开发平台,其中包含了各种用于编写、调试和部署应用程序的工具和功能。IDE通常提供代码编辑器、编译器、调试器、版本控制、构建工具等,可以帮助我们更高效地进行软件开发。传统的IDE通常是安装在本地计算机上的软......
  • C# MVC 自学笔记—10 在 ASP.NET MVC 中使用页面检查器
    VisualStudio2012年页督察是与集成的浏览器的web开发工具。中集成浏览器中,选择任意元素,页面检查器立即突出显示该元素的源代码和CSS。可以浏览任何MVC视图、快速查找呈现标记的来源和使用右内的VisualStudio环境浏览器工具。观看视频本教程演示如何启用检查模式,然后快......
  • 22、ACL访问控制列表-1
    ACL访问控制列表,就是定义不同的规则,设备根据规则进行数据包“允许通过”或者“拒绝”进行分类,从而实现网络访问行为的控制、流量限制等措施。ACL报文规则是顺序匹配,在创建基本ACL或者高级ACL是,根据项目需求,需要建立1条或者多条规则,网络设备接收到流量后,按照规则顺序匹配,如果匹配,......
  • 微信小程序页面跳转方法总结
    在我们日常的开发过程中,跳转页面是每个项目中必有的需求,包括监听返回按钮,回到指定页面,在小程序中页面跳转即页面路由页面栈框架以栈的形式维护了当前的所有页面。当发生路由切换的时候,页面栈的表现如下:getCurrentPages()函数用于获取当前页面栈的实例,以数组形式按栈的顺序给出,第一......
  • Python开发实例(二)To-Do列表应用:创建一个简单的命令行应用,允许用户添加、删除和查看待
    defprint_todo_list(todo_list):ifnottodo_list:print("待办事项列表为空!")else:print("待办事项列表:")forindex,todoinenumerate(todo_list,1):print(f"{index}.{todo}")defadd_todo(todo_......
  • jQuery跨页面锚点点位
    functiongetparams(){varparams=location.search.substring(1);varArrparams=params.split('&');if(Arrparams.length==2){varmao=Arrparams[1].split('=')[1]console.log(mao)if(mao=="c1&quo......
  • 第4章 操作列表
    4.1遍历整个列表1.使用forxxinxxs:语句来遍历列表4.1.1深入地研究循环1.获取magicians列表中的第一个值,再将值赋值给magician2.遍历次数相当于列表长度,会遍历列表的每一个元素4.1.2在for循环中执行更多的操作1.只要在for代码块内的缩进位置就是for循环中每一次都......
  • xposed优秀模块列表 --- trustmealready
    https://repo.xposed.info/module/com.virb3.trustmealready一个Xposed模块,使用MattiaVinci提供的出色技术在Android上禁用SSL验证和固定。效果是系统范围的。适用于各种安全审计。 作者: ViRb3支持/讨论网址: https://github.com/ViRb3/TrustMeAlready源代码网址: https......
  • (转)WEB页面导出为Word文档后分页&横向打印的方法
    项目中用到了横向打印,今天重新更新了这个脚本.<html><HEAD><title>WEB页面导出为Word文档后分页&横向打印的方法</title></HEAD><SCRIPTLANGUAGE="javascript">......
  • 实验八 列表
    实验八列表一、实验目的1、培养分析问题并对进行建模的能力。2、熟练运用列表解决实际问题。二、实验内容1、给定一个列表(纯数字),求最大值,求最小值,求平均值、求和(不能使用系统函数)。2、输入一个由英文单词组成的字符串(分隔符自定)(input),将每个单词的长度计算出来并形成一个新......