a库,b库固定表头

webUi
赵桐华 5 years ago
parent 43648fd746
commit 7494a08290
  1. 2
      frontend/views/database/a-index.php
  2. 4
      frontend/views/database/b-index.php

@ -218,7 +218,7 @@ use \common\libs\MyLib;
function fix(){
//table设置一定的高度
var tab=$("#listTable").attr('data-height');
$('.fixed-table-body').css({'height':tab-40});
$('.fixed-table-body').css({'height':tab-100});
//当浏览器窗口变化时,表头与表格不对齐解决
$('.table').bootstrapTable();
$(window).resize(function () {

@ -97,7 +97,7 @@ use \common\libs\MyLib;
</form>
<div class="row" style="margin-top:20px;">
<div class="col-md-12">
<table id="listTable" class="table" data-toggle="table" data-height="458">
<table id="listTable" class="table" data-toggle="table" data-height="550">
<thead class="bg-warning">
<tr >
<th data-field="state" data-checkbox="true"></th>
@ -157,7 +157,7 @@ use \common\libs\MyLib;
function fix(){
//table设置一定的高度
var tab=$("#listTable").attr('data-height');
$('.fixed-table-body').css({'height':tab-99});
$('.fixed-table-body').css({'height':tab-100});
//当浏览器窗口变化时,表头与表格不对齐解决
$('.table').bootstrapTable();
$(window).resize(function () {

Loading…
Cancel
Save