zoukankan      html  css  js  c++  java
  • 关于bootstrap table 固定列宽

    首先为table 设置 style="table-layout: fixed;"
     <table id="assessStage" data-height="467" data-mobile-responsive="true" style="table-layout: fixed;">
                    </table>
    然后在下方columns 处设置width
    $('#assessStage').bootstrapTable({
                method: 'get',
                url: "xxx",
                btn: true,
                pagination: true,
                pageSize: 10,
                pageNumber: 1,
                pageList: [10, 15, 30],//分页步进值
                striped: true,
                dataField: "list",
                iconSize: 'outline',
                icons: {
                    refresh: 'glyphicon-repeat',
                    toggle: 'glyphicon-list-alt',
                    columns: 'glyphicon-list'
                },
                columns: [
                    [
                        {
                            field: 'student_name',
                            title: '姓名',
                            align: 'center',
                            colspan: 1
                            ,100
                        },
                        {
                            field: 'hospital_name',
                            title: '带教单位',
                            align: 'center',
                            colspan: 1
                            ,200
                        },
                        {
                            field: 'teacher_name',
                            title: '指导老师',
                            align: 'center',
                            colspan: 1
                            ,100
                        },
                        {
                            field: 'start_time',
                            title: '开始时间',
                            align: 'center',
                            colspan: 1,
                            100
                        }
                    ]
                ]
            });

  • 相关阅读:
    图片验证码制作
    上传图片加水印
    组合查询加分页
    C# 数据类型 数据转换 自己的见解和方式
    C# 基础控制台程序的创建,输出,输入,定义变量,变量赋值,值覆盖,值拼接,值打印
    关于Spring注解
    java I/O
    关于web.xml配置
    第7章 使用springMVC构建Web应用程序 7.1 springMVC配置
    js配合c3制作一个动态钟表
  • 原文地址:https://www.cnblogs.com/zhuyeshen/p/11981916.html
Copyright © 2011-2022 走看看