固定表头方法,导入框架在table里面填入数值,然后在js里面设置一定的高度

webUi
赵桐华 5 years ago
parent 1f5fb568ee
commit e14785c359
  1. 4
      frontend/views/menu/index.php
  2. 3
      frontend/views/permissions/index.php

@ -2,7 +2,7 @@
use \common\libs\MyLib;
?>);
<?php $this->beginBlock('header_css'); ?>
<link href="/assets/css/bootstrap.min.css" rel="stylesheet">
//<link href="/assets/css/bootstrap.min.css" rel="stylesheet">
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<?php $this->endBlock(); ?>
@ -22,7 +22,7 @@ use \common\libs\MyLib;
<div class="ibox-content">
<div class="row">
<div class="col-md-12">
<table id="listTable" class="table table-bordered" id="table" data-toggle="table" data-height="689">
<table id="listTable" class="table" id="table" data-toggle="table" data-height="689">
<thead class="bg-warning">
<tr>
<th data-field="show_id">ID</th>

@ -2,7 +2,6 @@
use \common\libs\MyLib;
?>
<?php $this->beginBlock('header_css'); ?>
//<link href="/assets/css/bootstrap.min.css" rel="stylesheet">
<link href="/assets/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<?php $this->endBlock(); ?>
@ -22,7 +21,7 @@ use \common\libs\MyLib;
<div class="ibox-content">
<div class="row">
<div class="col-md-12">
<table id="listTable" class="table table-bordered" id="table" data-toggle="table" data-height="689">
<table id="listTable" class="table" id="table" data-toggle="table" data-height="689">
<thead class="bg-warning">
<tr>
<th data-field="id">ID</th>

Loading…
Cancel
Save