卿岚 2022-03-27 10:53 采纳率: 76.8%
浏览 77
已结题

Bootstrap Table 加载异常

不知道是不是引用错了还是缺什么东西

img

img

img

  <section>
        <table id="bootstrap-table" data-toggle="table" data-query-params="queryParams" data-toolbar="#toolbar"
               data-pagination="true"
               data-search="true"
               data-show-refresh="true"
               data-show-toggle="true"
               data-show-columns="true"
               data-page-size="10">
            <thead>
                <tr>
                    <th>学号</th>
                    <th>姓名</th>
                    <th>年龄</th>
                    <th>手机号</th>
                    <th>专业班级</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <%
                    StudentSever studentSever = new StudentSever();
                    Vector<Vector<Object>> data=studentSever.printallstudent();
                    for(Vector<Object> vector:data){
                        String number= String.valueOf(vector.get(0));
                        %>
                            <tr>
                                <th><%= number %></th>
                                <th><%= vector.get(1) %></th>
                                <th><%= vector.get(2) %></th>
                                <th><%= vector.get(3) %></th>
                                <th><%= vector.get(4) %></th>
                                <th>
                                    <a href="<%=request.getContextPath()%>/mainServlet?type=toUpdate&number=<%= number%>" accept-charset="UTF-8">修改</a>
                                    <a href="<%=request.getContextPath()%>/mainServlet?type=delete&number=<%= number%>"accept-charset="UTF-8" onclick="return confirm('确定要删除吗?') ">删除</a>
                                </th>
                            </tr>
                        <%
                    }
                %>
            </tbody>
        </table>

    </section>


  • 写回答

2条回答 默认 最新

  • CSDN专家-showbo 2022-03-27 12:14
    关注

    bootstrap.table基于bootstrap框架,题主未导入bootstrap的css,而且有些js文件重复导入了,压缩版本的js和css文件题主并没有

    img

    加上bootstrap的css

        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
    
    

    img

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 4月4日
  • 已采纳回答 3月27日
  • 创建了问题 3月27日

悬赏问题

  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺