Home > Net >  Bootstrap the inside of the table, when the resolution is changed, change the height of the table, b
Bootstrap the inside of the table, when the resolution is changed, change the height of the table, b

Time:11-11

 
Var divHeight=$(" # tableDiv "), height () * 0.68;

$(function () {
Self. SetInterval (obj. FunInit (), 1000 * 60 * 30);
});
Var obj={
FunInit: function () {
$(' # scheduling). BootstrapTable ({
Method: 'get',
Url: '/Working/GetTotalAMB,
Pagination: true,
SidePagination: "server,"
The toolbar: '# toolbarDetail',
PaginationDetailHAlign: 'hidden',
Striped: true,
PageSize: 20,
Height: divHeight,
QueryParams: function (params) {
Return the params.
},
});
},
}

Tablediv percentage, is the height of each with the height of the div to table assignment, but when the resolution is changed, the table will appear on the right scroll bar, I don't want this effect, I want the whole table collective change, there is not only a scroll bar, could you tell me how should adjust

CodePudding user response:

 










  • Related