bootstrap4 横向表格

bootstrap4 横向表格 页面代码
效果图如下
在这里插入图片描述
代码如下

<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>查询数据</title>
    <th:block th:include="include/inc2::css"></th:block>

</head>
<body>
<div class="container-fluid" style="margin-top: 5px;">
    <div class="btn-group" role="group" aria-label="Button group with nested dropdown">
        <button type="button" class="btn btn-info">项目:</button>
        <div class="btn-group" role="group">
            <select  class="btn btn-secondary" name="projectId" id="projectId" onchange="reload()">
                <option th:each="t:${projectList}"
                        th:value="${t.projectId}"
                        th:text="${t.projectName}">
                </option>
            </select>
        </div>
    </div>
    <div class="form-group row ">
        <div class="btn-group" role="group" aria-label="Basic example">
            <button id="monthlyimagefp_btn" type="button" class="btn btn-primary bi bi-plus" onclick="monthlyimagefp_add()" >添加复盘目录</button>
        </div>
    </div>
<!--    横向表格-->
    <style>
        .tablediv{overflow: auto; width: 100%;margin-right: 10px}
        .tablediv table{border:1px ;width:3000px ;height:320px ;align:center}
        .tablediv table tbody td{height:150px ;width: 180px}
        .tablediv table tbody td img{height:120px ;width: 180px}
        .tablediv table tbody td span{height:10px ;width: 10px;cursor: pointer}
    </style>
    <div class="tablediv" >
        <table >
            <thead>
            <tr class="bg-info" align="center">
                <th>序号</th> <th>效果图</th> <th>标题</th> <th>标题</th>
<!--                <td th:each="w,i:${dates}">-->
<!--                <span th:text="${w}"></span>-->
<!--                </td>-->
                <th>添加现场图</th><th>操作</th><th></th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td align="center">1</td>
                <td><img src="/static/images/pic_datang.jpg"></td>
                <td align="center">大堂</td>
                <td>
                    <div>
                        <img src="/static/images/pic_datang.jpg">
                    </div>
                    <div style="position: relative">
                        <button type="button" class="bi bi-eraser btn btn-success"></button>
                        <button type="button" class="bi bi-trash btn btn-danger" style="position: absolute;right: 5px"></button>
                    </div>
                </td>
                <td>
                    <div class="btn-group" role="group" aria-label="Basic example">
                        <button id="xctadd1_btn" type="button" class="btn btn-primary bi bi-plus" onclick="xct_add()" >添加大堂现场图</button>
                    </div>
                </td>
                <td align="center">
                    <button type="button" class="bi bi-eraser btn btn-success">修改</button>
                    <button type="button" class="bi bi-trash btn btn-danger">删除</button>
                </td>
            </tr>
            <tr>
                <td align="center">2</td>
                <td><img src="/static/images/pic_wailimian.jpg"></td>
                <td align="center">外立面</td>
                <td>
                    <div>
                        <img src="/static/images/pic_datang.jpg">
                    </div>
                    <div style="position: relative">
                        <button type="button" class="bi bi-eraser btn btn-success"></button>
                        <button type="button" class="bi bi-trash btn btn-danger" style="position: absolute;right: 5px"></button>
                    </div>
                </td>
                <td>
                    <div class="btn-group" role="group" aria-label="Basic example">
                        <button id="xctadd2_btn" type="button" class="btn btn-primary bi bi-plus" onclick="xct_add()" >添加外立面现场图</button>
                    </div>
                </td>
                <td align="center">
                    <button type="button" class="bi bi-eraser btn btn-success">修改</button>
                    <button type="button" class="bi bi-trash btn btn-danger">删除</button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>

</div></br>
</body>
<th:block th:include="include/inc2::js"></th:block>
<script>
    function reload() {
        var projectId = $("#projectId").val();
        location.href = "/monthlyImage/query?projectId="+projectId;
    }
</script>

</html>
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值